try this. I just tested in xl95 (vers 7) ,xl97sr2 (vers 8.0a) and xl2002
(vers 10)
Sub WhatVersion()
x = Int(Left(Application.Version, _
Len(Application.Version) - 1))
MsgBox x
End Sub
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Steve" <(E-Mail Removed)> wrote in message
news:02df01c3c4f0$9046a590$(E-Mail Removed)...
> How can I compare excel versions. I want to say
>
> "every version above 7.999" The problem is sometimes I
> get a version = 8.0a
>
> I could parse the number out of the version string, but
> I'm thinking there is a "correct" way of doing this.
>
> This thing has to work for Excel95, 97, 2002 and 2003