E
Ed
I'd like to attach a macro to a shape that I can invoke from VBA, say, to
print custom property values. (In the end, I hope to have different versions
of a macro associated with evolving verions of a shape in a template.)
I have macros assigned to action rows in the shapesheet. I can find and
print the value of the action action. I just can't figure out how to get it
to DO the action.
I've also tried variations of the following code:
Sub test1()
MsgBox "Hi Ed"
End Sub
Sub test2()
runmacro "test1"
End Sub
but get "Sub or function not defined" errors for whatever function name I
try (including runmacro, docmd, and evaltext). If I could invoke from a
string, I'd just slap a macro name as text in a custom propertyan ddeclare
victory.
Am I missing something simple?
print custom property values. (In the end, I hope to have different versions
of a macro associated with evolving verions of a shape in a template.)
I have macros assigned to action rows in the shapesheet. I can find and
print the value of the action action. I just can't figure out how to get it
to DO the action.
I've also tried variations of the following code:
Sub test1()
MsgBox "Hi Ed"
End Sub
Sub test2()
runmacro "test1"
End Sub
but get "Sub or function not defined" errors for whatever function name I
try (including runmacro, docmd, and evaltext). If I could invoke from a
string, I'd just slap a macro name as text in a custom propertyan ddeclare
victory.
Am I missing something simple?