How can I run a macro in Visio? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guest

How can I run a macro in Visio?  Topic is solved

09 May 2018, 21:39

Hi, I'm making a macro using MS Visio and I have a question.
I want to run a macro in MS visio with ahk script.
I tried several things, but it didn't work.. please help.

I tried this one

Code: Select all

visio.Run("removeStrikeThrough")
MsgBox :
---------------------------
VisioTest_3.ahk
---------------------------
Error: 0x80020006

Specifically: Run
...
---> 041: visio.Run("removeStrikeThrough")


and this one

Code: Select all

COM_Init()
mVisio := COM_GetActiveObject("Visio.Application")
COM_Invoke(mVisio, "Run", "!" "removeStrikeThrough")
COM_Release(mVisio)
COM_Term()

MsgBox :
---------------------------
COM Error Notification
---------------------------
Function Name: "Run"
ERROR: No COM Dispatch Object!
()

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 326 guests