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
Jonathan West - 04 Feb 2006 16:34 GMT
> i need to add the following to a template i've done.
>
[quoted text clipped - 5 lines]
>
> how should i proceed? any pointers?
Take a look at the Application.Version and System.Version properties in VBA
Help.

Signature
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
Jay Freedman - 04 Feb 2006 16:37 GMT
>i need to add the following to a template i've done.
>
[quoted text clipped - 8 lines]
>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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
Cindy M -WordMVP- - 04 Feb 2006 17:46 GMT
> i need to add the following to a template i've done.
>
[quoted text clipped - 3 lines]
>
> 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 :-)