+ Reply to Thread
Results 1 to 4 of 4

"Run-time error '1004' : Method 'Range' of object'_Global' failed

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    21

    "Run-time error '1004' : Method 'Range' of object'_Global' failed

    Hello,

    Ok so this is an error I often get. I know it is to do with specifying ranges properly but I really struggle with it.

    So I have a spreadsheet with multiple worksheets. There are defined ranges on one of the worksheets. This worksheets is called Dividends

    I have a macro which runs on this spreadsheet. Please see the code below.

    Please Login or Register  to view this content.
    When I press F5 on this macro it works fine. When I press F5 and run through the macros I want in sequence it works fine.

    However when I run a macro that runs multiple macros across different worksheets in sequence I get the "Run-time error '1004' : Method 'Range' of object'_Global' failed and the Range("ExDividendYesorNo") is highlighted when i debug. Range("ExDividendYesorNo") is a defined name for the dividends worksheet only.

    Could someone please suggest what I should put into the code to specify where the range is. It is a defined range in the 'Dividends' Worksheet only.

    Help is much appreciated

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: "Run-time error '1004' : Method 'Range' of object'_Global' failed

    It works on F5 because you are selecting your range. I do not know if this helps.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: "Run-time error '1004' : Method 'Range' of object'_Global' failed

    Hi,

    No I am still getting the error :S

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: "Run-time error '1004' : Method 'Range' of object'_Global' failed

    If you name range is created in one sheet, how is you then testing it all sheets? Could you please your sample

+ 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] Run-time error ‘1004’: Method ‘Range’ of ‘object’_Global’ failed.
    By dhiresh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2013, 12:04 PM
  2. Run-time-error 1004 -- Method 'Range' of object '_Global' failed
    By tilleyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2012, 10:55 PM
  3. Run-Time Error 1004 Method Range of object _Global Failed?
    By MadDino in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2011, 05:13 AM
  4. Run time error 1004 - Method 'Range' of 'Object'_Global' failed
    By excelaspire0219 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-10-2009, 01:18 PM
  5. [SOLVED] Run-time error '1004': Method 'Range' of object '_Global' failed
    By Neild in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2006, 07:50 PM

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