template programming

R

rmanchu

i need to add the following to a template i've done.

i want to check the version of Word when the template is loaded.
eg: if not word 2003 then inform, abort
eg: if word 2003 and not sp2 then give warning message and continue

i might want to check the OS as well?

how should i proceed? any pointers?

thanx
riyaz
 
J

Jonathan West

i need to add the following to a template i've done.

i want to check the version of Word when the template is loaded.
eg: if not word 2003 then inform, abort
eg: if word 2003 and not sp2 then give warning message and continue

i might want to check the OS as well?

how should i proceed? any pointers?

Take a look at the Application.Version and System.Version properties in VBA
Help.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jay Freedman

i need to add the following to a template i've done.

i want to check the version of Word when the template is loaded.
eg: if not word 2003 then inform, abort
eg: if word 2003 and not sp2 then give warning message and continue

i might want to check the OS as well?

how should i proceed? any pointers?

thanx
riyaz

According to the VBA Help topic about the Version property:

----------
This example displays the Word version number in a message box.

Msgbox "The version of Word is " & Application.Version

This example displays the version number of the operating system in a
message box.

Msgbox "The system version is " & System.Version
----------

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
C

Cindy M -WordMVP-

i need to add the following to a template i've done.
i want to check the version of Word when the template is loaded.
eg: if not word 2003 then inform, abort
eg: if word 2003 and not sp2 then give warning message and continue

i might want to check the OS as well?
Application.Version and Application.Build will give you version and
information that equates to the SP.

The OS would be System.OperatingSystem together with System.Version

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top