Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • 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

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

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