Solved

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

Posted on 2010-11-25
4
232 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
  • 2
4 Comments
 
LVL 19

Expert Comment

by:MINDSUPERB
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
MIND..., your stuff was helpful but not immediately applicable.
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now