+ Reply to Thread
Results 1 to 5 of 5

Run-time error '1004': Method 'Range' of object '_ Global' failed

  1. #1
    Registered User
    Join Date
    10-20-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Run-time error '1004': Method 'Range' of object '_ Global' failed

    Hi,
    I am very new to VBA and am looking at a former colleague's worksheet. There is a macro in this worksheet which automatically creates 3 additional blank rows near the bottom of a spreadsheet.

    Unfortunately this macro does not seem to be working any more. I have copied the code for the macro below.

    Please Login or Register  to view this content.

    The row that the debugger selects as causing the error is:

    Please Login or Register  to view this content.
    Any help will be very gratefully received.

    Thanks
    Last edited by romperstomper; 10-20-2011 at 09:52 AM. Reason: putting in code tags

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run-time error '1004': Method 'Range' of object '_ Global' failed

    Are you sure that Range exists?

    Note: when adding code tags, you need to select the code, then click the code tags button, or enter them manually using:
    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]
    I have corrected them for you on this occasion.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    10-20-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Run-time error '1004': Method 'Range' of object '_ Global' failed

    RS,
    Thanks for correcting my post.

    I have referred to the 'name manager' function in Excel and it does show that range, but its value is #NA, and its refers to value is #NA. From memory, this workbook started malfunctioning when our computers were switched from Excel 2003 to Excel 2007. Do you know how I can solve this problem.

    Many thanks.
    MDVC

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run-time error '1004': Method 'Range' of object '_ Global' failed

    You will need to correct the range name so that it points at the correct location. I can't even guess the specifics of where that may be, I'm afraid.

  5. #5
    Registered User
    Join Date
    10-20-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Run-time error '1004': Method 'Range' of object '_ Global' failed

    OK, thanks. I will try and work on that.

    MDVC

+ 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