+ Reply to Thread
Results 1 to 3 of 3

Error 1004 Method range of object when trying to clear range selection

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    indiana, US
    MS-Off Ver
    2016
    Posts
    33

    Error 1004 Method range of object when trying to clear range selection

    Hello,
    I am having rookie problems when trying to make code to clear a range from cell A3 to the bottom right corner of the table. I get the following error:
    Run-time error'1004':
    Method'Range'of object'_Worksheet' failed

    I am sure it is a simple issue on my part, but I cannot figure it out. I have searched the forums to find a similar issues, but nothing I've found fixes the issue.

    Please Login or Register  to view this content.
    Thanks in advance for any help.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Error 1004 Method range of object when trying to clear range selection

    Qualify the worksheet for both the Range A3 and the end range. Also, you cannot .Select a range unless its sheet is selected.

    This will qualify both the start and end range with the worksheet and clear the cells without selecting the range or sheet.

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 01-15-2017 at 10:18 PM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Error 1004 Method range of object when trying to clear range selection

    Change sheet reference as required
    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)

Similar Threads

  1. [SOLVED] Help! Error 1004, method 'Range' of object'_Worksheet' failed.
    By zac_595 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2013, 02:55 PM
  2. [SOLVED] Error 1004 - Method Range of Object Worksheet Failed
    By mrbickelsworth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 02:18 PM
  3. [SOLVED] Run Time Error '1004': Method 'Range' of Object
    By LoneWolf3574 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 05:26 AM
  4. [SOLVED] Name a dynamic range - Run-time error 1004 Method 'Range' of object'_Worksheet' failed
    By DavidBW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2012, 08:00 AM
  5. Run-time error '1004': Method 'Range' of object '_ Global' failed
    By mdvc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2011, 11:48 AM
  6. 1004:runtime error method 'range' of object'_Global failed
    By trksbc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2009, 03:25 AM
  7. Error 1004 Method 'Range' of object '_Global' failed
    By bjwade62 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2006, 11:00 AM
  8. [SOLVED] Range Question / error 1004: method Range of object Worksheet has failed
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2005, 10:06 AM

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