+ Reply to Thread
Results 1 to 17 of 17

error 1004

Hybrid View

hamex error 1004 09-09-2010, 01:22 PM
shg Re: error 1004 09-09-2010, 01:23 PM
JBeaucaire Re: error 1004 09-09-2010, 01:24 PM
hamex Re: error 1004 09-09-2010, 01:29 PM
shg Re: error 1004 09-09-2010, 01:45 PM
hamex Re: error 1004 09-09-2010, 01:52 PM
shg Re: error 1004 09-09-2010, 01:54 PM
hamex Re: error 1004 09-09-2010, 01:59 PM
shg Re: error 1004 09-09-2010, 02:01 PM
hamex Re: error 1004 09-09-2010, 02:03 PM
shg Re: error 1004 09-09-2010, 02:24 PM
hamex Re: error 1004 09-09-2010, 02:33 PM
JBeaucaire Re: error 1004 09-09-2010, 02:41 PM
jaslake Re: error 1004 09-10-2010, 04:41 PM
hamex Re: error 1004 09-12-2010, 12:16 PM
snb Re: error 1004 09-12-2010, 12:47 PM
jaslake Re: error 1004 09-12-2010, 01:03 PM
  1. #1
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: error 1004

    Hi Hamex

    I believe you'll find your error in this line of code
    Col = Right(iCell.Offset(-lRows, 0).Address, 2)
    is due to the fact that once your row number exceeds 99, the formula in the offending line of code evaluates to 0 (zero).

    Change that line of code to
    Col = iCell.Offset(-lRows, 0).Row
    and you should be good to go.

    John

    PS: By the way, I tested Shg's code...it's much simpler than the code I wrote and it works wonderfully well.
    Last edited by jaslake; 09-10-2010 at 04:53 PM.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ 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