Disable all dialog boxes in Excel while running VBscript?

后端 未结 5 1610
旧巷少年郎
旧巷少年郎 2021-01-04 01:19

I have some code in VB that saves all XLSM files as XLSX. I already have the code that will do that for me, but dialog boxes show up for every action. This was fine for a fe

5条回答
  •  旧巷少年郎
    2021-01-04 01:52

    In Access VBA I've used this to turn off all the dialogs when running a bunch of updates:

    DoCmd.SetWarnings False
    

    After running all the updates, the last step in my VBA script is:

    DoCmd.SetWarnings True
    

    Hope this helps.

提交回复
热议问题