L
Lenny
I created the simple macro below for a protected form template that is
executing in a non-protected section of the form template. The bounding box
dimensions have been entered into the macro so the user has a good size
working area to begin.
The macro is stored on a toolbar with other customizations.
When the user wants to use INSERT with some some function, other than
"Microsoft Word Picture", like Equation Editor, the macro executes and high
jacks them into the Word Picture Editor. Is this normal? They are not
clicking on the button to execute the macro in the toolbar.... is there a way
to modify the code in the macro to get the user to the dropdown list so they
can scroll down and make their selection?
See code below..... Lenny
Sub InsertObject()
'
' InsertObject Macro
' Macro recorded 5/14/2008
'
Selection.InlineShapes.AddOLEObject ClassType:="Word.Picture.8",
FileName _
:="", LinkToFile:=False, DisplayAsIcon:=False
Selection.PageSetup.LeftMargin = 84
Selection.PageSetup.RightMargin = 462
Selection.PageSetup.BottomMargin = 330
End Sub
executing in a non-protected section of the form template. The bounding box
dimensions have been entered into the macro so the user has a good size
working area to begin.
The macro is stored on a toolbar with other customizations.
When the user wants to use INSERT with some some function, other than
"Microsoft Word Picture", like Equation Editor, the macro executes and high
jacks them into the Word Picture Editor. Is this normal? They are not
clicking on the button to execute the macro in the toolbar.... is there a way
to modify the code in the macro to get the user to the dropdown list so they
can scroll down and make their selection?
See code below..... Lenny
Sub InsertObject()
'
' InsertObject Macro
' Macro recorded 5/14/2008
'
Selection.InlineShapes.AddOLEObject ClassType:="Word.Picture.8",
FileName _
:="", LinkToFile:=False, DisplayAsIcon:=False
Selection.PageSetup.LeftMargin = 84
Selection.PageSetup.RightMargin = 462
Selection.PageSetup.BottomMargin = 330
End Sub