+ Reply to Thread
Results 1 to 4 of 4

Runtime error 1004: Method 'Range' of object '_Worksheet' failed

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office Standard 2013
    Posts
    27

    Runtime error 1004: Method 'Range' of object '_Worksheet' failed

    Hello,

    I realise there are a number of posts on this topic and I have reviewed them but cannot find exactly what I am looking for.

    I have a macro that works well until I extend its range at which time I get the error 1004. The code range goes out to column EN:EN but the problem occurs when I extend the range(s) to cover "EQ:EQ" see code below.

    Please Login or Register  to view this content.
    Does anyone know if there is a better / alternative way of doing this that will allow me to extend the range without the error?

    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Runtime error 1004: Method 'Range' of object '_Worksheet' failed

    Why not use something like this to check if Target is in the range?
    Please Login or Register  to view this content.
    This first checks if Target is within the overall range R:EN and then checks if it's the 3rd column.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Runtime error 1004: Method 'Range' of object '_Worksheet' failed

    Please Login or Register  to view this content.
    Last edited by protonLeah; 07-17-2013 at 12:46 AM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    05-17-2013
    Location
    Glasgow, Scotland
    MS-Off Ver
    MS Office Standard 2013
    Posts
    27

    Re: Runtime error 1004: Method 'Range' of object '_Worksheet' failed

    Excellent.

    Thank you protont (and Norrie) it worked perfectly.

    Thanks again.

+ 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. Runtime error '1004' - Method 'Range' of object '_worksheet' falied
    By vijaykumarnachapalli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2013, 12:58 AM
  2. Runtime error '1004' - Method 'Range' of object '_worksheet' falied
    By vijaykumarnachapalli in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-05-2013, 02:45 PM
  3. [SOLVED] error 1004 Method 'Range' of object '_Worksheet' failed when selecting multiple ranges
    By Edejager in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 07:51 AM
  4. me too - run-time error '1004' method 'range' of object '_worksheet' failed
    By ASAFSWIS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2013, 05:14 PM
  5. Receiving runtime error 1004: Method 'Range' of object '_Worksheet' failed
    By DrShocktopus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2010, 10:39 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