Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
How can I activate a button from another page? The reason why I'm doing is because I have to create a simple GUI and have already defined a lot of buttons with different functionalities on different pages. I created a macro on a button -> run macro with:
Sub ActiveDocument.GetSheetObject("BU532").Press
end sub
The problem I got was "(" expected. Is this because I haven't defined the connection properly or should I use another command?
Thanks!
Luca
Ok, I found the solution. I didn't gave a title to the macro.
Sub TEST()
ActiveDocument.GetSheetObject("BU532").Press
end sub
() is the javascript one, If you really need in VB script try like below
Sub TEST
ActiveDocument.GetSheetObject("BU532").Press
end sub