Results 1 to 2 of 2

Thread: detect - MS Excel version

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Location
    Poland
    Posts
    10

    detect - MS Excel version

    My question is:
    how can I programmatically detect MS Excel Version , like for example Excel 2000 or 2002, 2003, 98 .... and so on

    thanks a lot for your help

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: detect - MS Excel version

    Well, you could do something like this:

    VB Code:
    1. Dim xlApp As Object
    2. Dim dblVersion As Double
    3. Set xlApp = CreateObject("Excel.Application")
    4. dblVersion = xlApp.Version
    5. Set xlApp = Nothing

    Version 7.0 = Excel 95
    Version 8.0 = Excel 97
    Version 9.0 = Excel 2000
    Version 10.0 = Excel 2002
    Version 11.0 (Current) = Excel 2003

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width