• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Finding out what version of Office runs on a computer from Access VBa

I have this app that is built out of Access 2007. It is runtimed and packaged and runs on User's computers. So Access will always be 2007 on that computer.

How can I find out in VBA the version of the MS Office that lives on the computer where my app is installed? It could be anything from 2000 onwards...

Many thanks.
0
Peborgh
Asked:
Peborgh
  • 2
1 Solution
 
MINDSUPERBCommented:
See the link below. It might help.

http://www.blueclaw-db.com/get_access_version_number.htm

Sincerely,
Ed
0
 
markmiddlemistCommented:
Hi

What you need to do is create an instance of the Application classes you care about ysung the CreateObject call (keeping the referencing in your code in terms of Object so you don't need to set up explicit references in the setup) , then checking the Version property:

Dim ExcelApp As Object
Dim VersionString As String

Set ExcelApp = CreateObject("Excel.Application")
VersionString = ExcelApp.Version

Hope this helps

Mark Middlemist
0
 
PeborghAuthor Commented:
mark..., it works, thanks. I have applied it to Excel and Word, because they might JUST be different on a PC.

peter
0
 
PeborghAuthor Commented:
MIND..., your stuff was helpful but not immediately applicable.
0
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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now