Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

Checking version of Excel from VBA in Access?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kjell - 16 Jan 2006 11:20 GMT
Hi,
How will the VBA-code look like to check which version an Office-program
(Excel)has. I need to do so and quit the macro if the Office program is too
old.
Signature

Kjell

Dirk - 16 Jan 2006 11:30 GMT
Assuming you want to check wether it's Excel 2003 (untested):

Dim objExcel as Object
Set objExcel = CreateObject("Excel.Application")
If objExcel.Version < 11.0 Then
   MsgBox "Excel needs to be at least version 2003"
   Exit Sub
End If

> Hi,
> How will the VBA-code look like to check which version an Office-program
> (Excel)has. I need to do so and quit the macro if the Office program is too
> old.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.