+ Reply to Thread
Results 1 to 3 of 3

Error: Runtime 1004 - Select method of range class failed

  1. #1
    Forum Contributor
    Join Date
    07-23-2006
    Posts
    185

    Error: Runtime 1004 - Select method of range class failed

    I have 2 sheets in my workbook. Originally I had just 1, but a few days ago added another sheet.

    Now when I have the new sheet visible and run this macro I get this run time error.

    If I have the original sheet visible, I have no trouble.

    What might I need to do to this code to get it to work when the new sheet is visible?

    I have a text button with this and other macros assigned to it. If I can get this solved, I'm hoping I can apply the fix to other macros I am sure I will be having similar problems with.

    It fails at Range("PreOrder_List").Select

    Here is my macro:
    Please Login or Register  to view this content.
    Thanks.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No need to select

    Please Login or Register  to view this content.
    Note you need to specify the sheet name e.g
    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    07-23-2006
    Posts
    185
    Cool.

    Thanks for the help.

    I had previously tried:
    Please Login or Register  to view this content.

+ 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