954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Excel Version in VB6

Is it possible to check which version of Excel a user's computer will open while in a VB6 application?

Some users will be using Excel 2003 and some will be using Excel 2007 and, in theory, a single command button will open one of two excel sheets based on which version they have. Is that possible?

leverin4
Junior Poster in Training
79 posts since Apr 2008
Reputation Points: 10
Solved Threads: 4
 

Yes you can -

Dim objXL As Excel.Application
Set objXL = New Excel.Application
MsgBox objXL.Version
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

I hoped/figured there was something simple like that. Thanks, you're a lifesaver.

leverin4
Junior Poster in Training
79 posts since Apr 2008
Reputation Points: 10
Solved Threads: 4
 

Only a pleasure.

AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: