which1 Posted January 5, 2013 Share Posted January 5, 2013 Hi everybody, Sub Bookmarks() is a VBA macro which puts... bookmarks in a Word document. Working fine from autoit with : _WordMacroRun($oWordApp, "Bookmarks") Sub Bookmarks(ByVal nbre As Integer) is quite the same macro : I just added a MsgBox for testing purpose. Still working fine from VBA, but no more from autoit with : _WordMacroRun($oWordApp, "Bookmarks", 2) I tried (rather blindly) ByVal --> ByRef and ("test", String) in place of (2, Integer) without succes. I'm afraid I need some help ! Thanks in advance. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now