Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

determine ms office version
I have to write an auto patcher for all of the client pcs, but some are
running different versions of office.

How can I determine which version of Microsoft Office is installed?  Do I
get it from the registry?

Thanks



Report this thread to moderator Post Follow-up to this message
Old Post
Tarren
09-30-04 08:55 PM


Re: determine ms office version
Registry key that you may be able to check:
HKCU\Software\Microsoft\Office

Registry Component:
http://www.vbaccelerator.com/home/V...rol/article.asp

--or--
How to Determine Programmatically If Office XP Is Installed
http://www.microsoft.com/office/ork...rn/prog0001.htm

--or--

Code that may help - run something similar against a known application
installed (Word may be better):

Public Function ExcelVersion() As String

On Error GoTo Hell

'Attempt to create an Excel object
Dim objExcel As Object
Set objExcel = CreateObject("Excel.Application")

'Retrieve the version
ExcelVersion = "MS Excel v" & objExcel.Version

'Destroy the object
Set objExcel = Nothing

Exit Function

Hell:
ExcelVersion = "(not found)"

End Function

--
Chris Hanscom
MVP (Visual Basic)
http://www.veign.com
--

"Tarren" <noemail@thankyou.com> wrote in message
news:%23fJlnQvpEHA.1160@tk2msftngp13.phx.gbl...
> I have to write an auto patcher for all of the client pcs, but some are
> running different versions of office.
>
> How can I determine which version of Microsoft Office is installed?  Do I
> get it from the registry?
>
> Thanks
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Veign
09-30-04 08:55 PM


Re: determine ms office version
On Thu, 30 Sep 2004 09:48:20 -0400, "Tarren" <noemail@thankyou.com>
wrote:

>I have to write an auto patcher for all of the client pcs, but some are
>running different versions of office.
>
>How can I determine which version of Microsoft Office is installed?  Do I
>get it from the registry?
>
>Thanks


You can query the following registry key to get the current Word
version which, in most cases, will equate to the current Office
version....

HKEY_CLASSES_ROOT\Word.Application\CurVer


HTH,
Bryan
 ________________________________________
____________________
New Vision Software                   "When the going gets weird,"
Bryan Stafford		              "the weird turn pro."
alpine_don'tsendspam@mvps.org     Hunter S. Thompson -
Microsoft MVP-Visual Basic     Fear and Loathing in LasVegas

Report this thread to moderator Post Follow-up to this message
Old Post
alpine
09-30-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.