Pass Version of Excel to a variable

  • Thread starter Thread starter ExcelMonkey
  • Start date Start date
E

ExcelMonkey

How can you identify which version of excel you are currently in whil
in VBA? Is it possible to pass this to a variable and then to
message box to infom the user?

Thn
 
Hi ExcelMonkey,

Try:

Sub Test()
Dim strVersion As String
strVersion = Application.Version
MsgBox strVersion
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top