Using "Launch Document" to open Word macros

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
montymay
Posts: 145
Joined: Thu Jul 18, 2013 5:23 am

Using "Launch Document" to open Word macros

Post by montymay » Thu Nov 13, 2014 7:43 am

I use WIndows. I want to run a Word 2010 template macro (a .dotm file) from LC by using the "launch document" command, but it won't work unless in my vba subroutine I set the triggering event to "document_open." But this opens the document as a .dotm file rather than a new document, a ".docx" file, as happens when in Windows Explorer I click on the icon of the file, the vba script of which reads "document_new." When I launch a template macro through LC and its script reads "document_new," the document opens but not the userform and the script does run. Hoping I stated my problem understandably, I write to ask whether anyone knows the solution or whether there is a solution. Thanks for any suggestions.

Monty May

montymay
Posts: 145
Joined: Thu Jul 18, 2013 5:23 am

Re: Using "Launch Document" to open Word macros

Post by montymay » Thu Nov 13, 2014 7:45 am

Error in third line. I meant to say "the script does not run."

Post Reply