Solved

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

Posted on 2010-11-25
4
237 Views
Last Modified: 2012-05-10
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
Comment
Question by:Peborgh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 34212151
See the link below. It might help.

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

Sincerely,
Ed
0
 
LVL 7

Accepted Solution

by:
markmiddlemist earned 500 total points
ID: 34212190
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
 

Author Comment

by:Peborgh
ID: 34212574
mark..., it works, thanks. I have applied it to Excel and Word, because they might JUST be different on a PC.

peter
0
 

Author Closing Comment

by:Peborgh
ID: 34212582
MIND..., your stuff was helpful but not immediately applicable.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question