+ Reply to Thread
Results 1 to 4 of 4

Range object

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    1

    Range object

    Hi,

    I have below lines of code in VBA:

    Please Login or Register  to view this content.
    During execution, below error is thrown in second line:

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

    Can anyone say what I am doing wrong.
    Thanks in advance.
    Last edited by jasmine123; 08-18-2010 at 07:02 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Range object

    Please wrap your code in code tags, before the moderators get you...

    Forum rules
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button.
    This is where the problem is
    Please Login or Register  to view this content.
    Excel 2003 only has 65536 rows

    Perhaps this is what you are after
    Please Login or Register  to view this content.
    Note also the Range address is in quotes.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Range object

    try
    Please Login or Register  to view this content.

    rgds
    johnjohns

    ps
    always use code tags
    Try this only in exel 2007 or later versions. Older versions having less than 66000 rows

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Range object

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ 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