Consulting

Results 1 to 3 of 3

Thread: Solved: excel2000 question

  1. #1
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location

    Solved: excel2000 question

    hi,

    i have a piece of code that will work on excel2003 but will not work in excel2000 because the feature is not there.
    how can i incoporate into the code to check the version of excel running?

    [vba]
    if excel2003 then
    Worksheets("sheet1").tab.ColorIndex = 5
    end if
    [/vba]
    when i write code using excel2003, is there any (aside from running the code in an older version) to know that the code will fail?

    thanks
    zach

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Check out this KB item
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Tutor
    Joined
    Feb 2006
    Posts
    295
    Location
    thanks malcolm
    just what i needed

Posting Permissions

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