V
vagabond
This is probably so simple...
I need to find some control IDs in Outlook to use in policy templates.
I follow MS's sample instructions, below, as follows:
Start Outlook
Go to Tools, Macro, VBE
Open the "immediate window"
Paste: ? commandbars ("menu bar").controls ("file").controls ("save as.").id
Press enter
Get:
---------------------------
Microsoft Visual Basic
---------------------------
Compile error:
Sub or Function not defined
---------------------------
OK Help
---------------------------
What am I doing wrong?
Thanks
John
MS Instructions:
You can use the Immediate window in VBA to look up the control ID for a single item on a menu if you know the name of the command bar it is on, the name of the control, and if necessary, the name of the sub control (if one exists). For example, the following command prints the control ID for the Save As command (File menu) to the Immediate window (directly below the command you enter). Start Microsoft Word, select Tools, select Macros, then select Visual Basic Editor. Enter the following command in the Immediate Window and press enter.
Example Code #1
? commandbars("menu bar").controls("file").controls("save as...").id
I need to find some control IDs in Outlook to use in policy templates.
I follow MS's sample instructions, below, as follows:
Start Outlook
Go to Tools, Macro, VBE
Open the "immediate window"
Paste: ? commandbars ("menu bar").controls ("file").controls ("save as.").id
Press enter
Get:
---------------------------
Microsoft Visual Basic
---------------------------
Compile error:
Sub or Function not defined
---------------------------
OK Help
---------------------------
What am I doing wrong?
Thanks
John
MS Instructions:
You can use the Immediate window in VBA to look up the control ID for a single item on a menu if you know the name of the command bar it is on, the name of the control, and if necessary, the name of the sub control (if one exists). For example, the following command prints the control ID for the Save As command (File menu) to the Immediate window (directly below the command you enter). Start Microsoft Word, select Tools, select Macros, then select Visual Basic Editor. Enter the following command in the Immediate Window and press enter.
Example Code #1
? commandbars("menu bar").controls("file").controls("save as...").id