+ Reply to Thread
Results 1 to 5 of 5

1004 Runtime error problem

  1. #1
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    1004 Runtime error problem

    I'm getting the 1004 Runtime error - Method 'Range' of
    object '_Global' failed in the following code copied from
    the 2007 VBA Programmer's Reference on the 'With Range...) line.
    Can anyone see a possible reason why please?

    Please Login or Register  to view this content.
    Spreadsheet Data:
    HTML Code: 
    Last edited by jp001; 04-20-2009 at 03:02 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: 1004 Runtime error problem

    You're missing a Next statement.

  3. #3
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: 1004 Runtime error problem

    Yes I omitted the last few lines; just edited to put them
    in anyway...

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: 1004 Runtime error problem

    I can only go on what you post here.

    Have you checked that there is actually a range named "Mangoes"?

  5. #5
    Registered User
    Join Date
    04-08-2009
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: 1004 Runtime error problem

    Oops! Thanks Stephen, that was it - a spelling error in a named range :P

+ 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