J
Jim
Hi,
I've got a macro that runs, opening lots of other project
files. However, some of these files will have macros in
them (because Project 2K adds a macro if you save it as 98
version).
I don't want the window to pop up, asking whether these
macros should be enabled/disabled each time. Instead I
was to lower the macro security while the files are
processed before returning it to Medium.
I've tried the following, using SendKeys but to no avail.
The Sendkeys are not working as I would expect. Any ideas?
Application.MacroSecurity
DoEvents 'does this help?
SendKeys "%L~", True 'send Alt-l to choose Low and
press enter
DoEvents 'does this help?
SendKeys "~", True 'press enter again for good luck?
DoEvents
MsgBox "set macro security"
Application.MacroSecurity
SendKeys "%m", True 'return it to medium
SendKeys "~", True 'press enter
MsgBox "reset"
I also presume that I can hide the Macro security window
by setting Displayalerts - is this correct?
Thanks
Jim
I've got a macro that runs, opening lots of other project
files. However, some of these files will have macros in
them (because Project 2K adds a macro if you save it as 98
version).
I don't want the window to pop up, asking whether these
macros should be enabled/disabled each time. Instead I
was to lower the macro security while the files are
processed before returning it to Medium.
I've tried the following, using SendKeys but to no avail.
The Sendkeys are not working as I would expect. Any ideas?
Application.MacroSecurity
DoEvents 'does this help?
SendKeys "%L~", True 'send Alt-l to choose Low and
press enter
DoEvents 'does this help?
SendKeys "~", True 'press enter again for good luck?
DoEvents
MsgBox "set macro security"
Application.MacroSecurity
SendKeys "%m", True 'return it to medium
SendKeys "~", True 'press enter
MsgBox "reset"
I also presume that I can hide the Macro security window
by setting Displayalerts - is this correct?
Thanks
Jim