Link to home
Create AccountLog in
Avatar of twickey
twickeyFlag for United States of America

asked on

How to I identify the current Office application as 2000, 2003, 2007, etc from Com Addin?

I am building a com addin for office, word specifically right now. I need to know which version of word the host machine is running as word 2007 has a ribbon and does not support regular toolbars. Identifying the version will allow me to load the appropriate toolbars. The object I am dealing with is of type "Microsoft.Office.Interop.Word.ApplicationClass" for word. It does change for other office products but I am mainly interested in Word right now.
MsgBox(applicationObject.version) will return the version number of the office release.
SOLUTION
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of twickey

ASKER

No I don't think you are completely off the mark as I am looking for any solution to this problem. I was hoping for a simpler and probably more reliable method such a property of Word that identifies its version. My project is a com addin which opens with Word. I think I should be able to use the opened copy of Word to get a version. I can already get a version # which is 11.0 for Word 2003 as well as Excel 2003. For Outlook 2003 it begins with 11. and goes on with more numbers. I don't know what this number signifies.

Thanks
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
No objection to close.
Thank you.