+ Reply to Thread
Results 1 to 2 of 2

advanced filter and method range of object_worksheet failed

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    106

    advanced filter and method range of object_worksheet failed

    HI I have some data on on one sheet named Worksheets("Varieties") and on sheet1 I want to enter a search crieteria and copy the results form the data on the varieties sheet.

    I recorded the following macro

    Please Login or Register  to view this content.
    This code works fine when I type in a search criteria and run the macro. However i then added the macro to a change event for a command button contained on sheet1 and i keep getting the subject of this query error come up.

    Any ideas will be much appreicated

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,088

    Re: advanced filter and method range of object_worksheet failed

    You might need to fully qualify the range, for example, with the sheet reference.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA | Advanced Filter | Run time error 1004 method range of object worksheet failed
    By williakm1013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2013, 08:30 PM
  2. [SOLVED] Error - Method Range of object_worksheet failed
    By pjbassdc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-02-2013, 03:55 PM
  3. Auto Filter Method in Range failed - error
    By BorisMKD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2009, 05:24 AM
  4. range method failed
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-15-2005, 01:00 PM
  5. Replies: 7
    Last Post: 08-24-2005, 11:05 AM

Tags for this Thread

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