1

In my installer, I checked the registry key (HKEY_CLASSES_ROOT\Excel.Application\CurVer) to get version of Excel. It has worked since day 1. However, recently we find on one client's PC there is no such key and my installer fails. So I wonder if there is any other registry key to get version of Excel? Or the client's Excel has some issue?

Thanks

Edit

The client has office 2010 (32 bit), windows 7 (64 bit).

3
  • You don't provide any relevant details (Office version? OS?) on the failing PC, so it's difficult to make any suggestion. Commented Apr 21, 2014 at 21:48
  • oh, thanks for reminding. Updated the post with OS, office version Commented Apr 21, 2014 at 21:53
  • "Or the client's Excel has some issue?" - that's quite possible... Commented Apr 21, 2014 at 22:30

2 Answers 2

1
Sub dural()
    MsgBox Application.Version
End Sub

Which on my machine yields 12.0 for Excel 2007

Sign up to request clarification or add additional context in comments.

Comments

1

Using Application.Version

Sub Excel_Version()

Select Case (Val(Application.Version))

Case 8
        MsgBox "You use Excel 97"
Case 9
        MsgBox "You use Excel 2000"
Case 10
        MsgBox "You use Excel 2002"
Case 11
        MsgBox "You use Excel 2003"
Case 12
        MsgBox "You use Excel 2007"
Case 14
        MsgBox "You use Excel 2010"
Case 15
        MsgBox "You use Excel 2013"
End Select

    MsgBox "Welcome to Microsoft Excel version " & _
    Application.Version & " running on " & _
    Application.OperatingSystem & "!"

End Sub

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.