Best Programming Language for Interacting with MS Word Other than VBA…

Hi All

<Rant> MS Word macro security is driving me nuts.  I have a bunch of macros bundled up and signed with a digital certificate.  I keep getting support calls from people who don't read the message telling them to adjust their macro security settings and think the macros just don't work.  And adding trusted locations etc. is way to difficult for the average word user.  </Rant>

There are a few other issues as well… I'd like to be able to:
- fix bugs without having to modify the entire project and reinstall everything
- add new language without having to reinstall the entire package
- introduce updates from the internet

Most of the functionality the macros provide includes:
- assigning document information
- enforcing formatting rules
- checking for consistency in formatting
- updating cross references
- inserting pictures etc in a consistent way

If I'm not mistaken there are other ways besides using VBA macros to control MS Word…?  

I'm looking for information on what would be a good approach to replacing macros to eliminate current frustrations (or eliminate current frustrations while keeping macros) and also, anticipating that I will need to hire a programmer, what skill set should I be advertising for?

LVL 15
Who is Participating?
TommySzalapskiConnect With a Mentor Commented:
Instead of creating macros you can use VSTO (Visual Studio Tools for Office) to create add-ins. There are great because they can be integrated automatically with the menu/ribbon and can be programmed in any of the .NET languages (C#, Visual Basic, Visual C++)

For simple things, vbScript also works well. You can also add the Word libraries in any .NET project and manipulate the Word files from there, but I'm guessing your best bet is the add-in.

You would create your own ribbon/menu category and put all your macros in there. Add-ins do not need macro security since they are installed.
"They are great" not "There are great"
And you would just advertise for someone who can program add-ins for Word.
Anyone who's worth his salt as a programmer and knows C#, Visual Basic, or VBA could figure it all out very quickly too.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

AndyAinscowFreelance programmer / ConsultantCommented:
re rant - yes, (users only read things when the telephone support isn't available?) adding to trusted sites isn't an obvious thing to do AND it might not be allowed with internal IT regulations.  

I've even had the person responsible for IT at a client telephoning me and asking how do I do that, they couldn't find the setting.
DrTribosAuthor Commented:
Hi TommySzalapski  -  Thank you for your comments. "Add-ins do not need macro security" is exactly the information that I need.  

Hi AndyAinscow - Yes, it's a sad day when you have to explain to a clients' IT representative how to add a trusted location or enable macros to run...  in my experience I'd estimate 90% + of people that I've helped could have done it themselves... very few organizations seem to be lock down PCs to the point users are unable to change macro settings or trusted locations....


I am guessing that I would need to be prepared to purchase Visual Studio - this seems to come in many flavours ranging in price from ~$350 to 20k! When I go to the MS website to look at the comparison I have given very unhelpful information (comparison seems limited to system requirements!).  Once I have Visual Studio I need to install the VSTO upgrade, seems free?

- will the users of the macros / addins require any special infrastructure on their PC (not including MS Word) in order to use them?

- what version of Visual Studio would be suitable - there are so many! The best guidance as to my requirements would be: 'I want to convert all macros to addins' so functionaly does not need to offer more than what I can do in VBA.

DrTribosAuthor Commented:
and then there is something like this...
TommySzalapskiConnect With a Mentor Commented:
Visual Studio Professional with be all you would need. Yes, the VSTO is a free addition. All the users will have to do is run your install file and it will work.

The link you posted still uses C# or Visual Basic which you might be able to get a non MS compiler for, but the VSTO will be cleaner.
DrTribosAuthor Commented:
TommySzalapski, thanks for your guidance - much appreciated

AndyAinscow, thanks for the rant support  ;-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.