+ Reply to Thread
Results 1 to 2 of 2

Office 2000 vs 2003

  1. #1
    hshayh0rn
    Guest

    Office 2000 vs 2003

    I have some code that I created using Excel 2003 but when user's who have
    2000 try to run it they get some errors. Here is a sample of the code they's
    choking:

    Columns("A:F").Select
    Selection.Replace What:=" ", Replacement:=" ", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False

    I was thinking it had something to do with the x1 part of the code but I'm
    not sure. I'm not a programmer I just wrote this by recoding my tasks in a
    macro and tying eveyrthing together. If there is an issue with code between
    office versions is there a more standard format for me to use?

  2. #2
    Kevin Vaughn
    Guest

    RE: Office 2000 vs 2003

    I am using 2000 and it did not like the last 2 arguments when I tried it.
    Try getting rid of , SearchFormat:=False, _
    ReplaceFormat:=False

    --
    Kevin Vaughn


    "hshayh0rn" wrote:

    > I have some code that I created using Excel 2003 but when user's who have
    > 2000 try to run it they get some errors. Here is a sample of the code they's
    > choking:
    >
    > Columns("A:F").Select
    > Selection.Replace What:=" ", Replacement:=" ", LookAt:=xlPart, _
    > SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    > ReplaceFormat:=False
    >
    > I was thinking it had something to do with the x1 part of the code but I'm
    > not sure. I'm not a programmer I just wrote this by recoding my tasks in a
    > macro and tying eveyrthing together. If there is an issue with code between
    > office versions is there a more standard format for me to use?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1