K
Kristina Conceicao
I'd like to use Applescript to create a new public sub in the Word 98
VBE. I see lots of posts on how to *execute* VBA commands via
Applescript, but nothing on actually creating a sub.
The problem I'm trying to solve is the distribution of macros to my end
users. In Excel, it's easy enough to just create and distribute an
Addin. In Word, I've resorted to putting the code in a document that I
put in the users' Startup folder, or walking them through going into the
VBE and copying/pasting the code from the body of an e-mail. Neither
option is very convenient. I'm thinking that I could create a module in
everyone's Normal template, named "KCcode". Then an Applescript could
add a sub to the module, and save the Normal template.
Any ideas on how I could accomplish this would be much appreciated.
VBE. I see lots of posts on how to *execute* VBA commands via
Applescript, but nothing on actually creating a sub.
The problem I'm trying to solve is the distribution of macros to my end
users. In Excel, it's easy enough to just create and distribute an
Addin. In Word, I've resorted to putting the code in a document that I
put in the users' Startup folder, or walking them through going into the
VBE and copying/pasting the code from the body of an e-mail. Neither
option is very convenient. I'm thinking that I could create a module in
everyone's Normal template, named "KCcode". Then an Applescript could
add a sub to the module, and save the Normal template.
Any ideas on how I could accomplish this would be much appreciated.