+ Reply to Thread
Results 1 to 7 of 7

Fiill-in blank is not filling all cells

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

    Fiill-in blank is not filling all cells

    I got the below code from Mr excel and slightly ameded to my needs. It supposed to act like CNTL+ G and select blank. It is easy to do it in excel if it is one sheet. I would like to make the code dynamic so that I can only it in all sheets.

    So, I have two questions: Why is the macto stops at line 18 and does not fill in the rest of the cellls? And How do I incorporate a loop for all sheets and cell which have the same strcture as the attached. The attached sample has all the requirments.

    Thanks

    Please Login or Register  to view this content.

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

    Re: Fiill-in blank is not filling all cells

    Sorry! I did not attach a file
    Attached Files Attached Files

  3. #3
    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: Fiill-in blank is not filling all cells

    Hi AB33

    Change your definition of LR to this
    Please Login or Register  to view this content.
    from this
    Please Login or Register  to view this content.
    and that'll fix this issue
    Why is the macto stops at line 18 and does not fill in the rest of the cellls?
    I'll play with the loop to fix this issue (unless someone else posts first)
    How do I incorporate a loop for all sheets and cell which have the same strcture as the attached
    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.

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

    Re: Fiill-in blank is not filling all cells

    Jaslake!

    That is great and thank you very much!

    The first issue has now been resolved. I am looking forward to the second solution. Ideally the same function as go to special in excel, but with out choosing the blanks first and should also loop through all sheets.

    Thanks again for your time and skills!

  5. #5
    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: Fiill-in blank is not filling all cells

    Hi AB33

    Try this
    Please Login or Register  to view this content.

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

    Re: Fiill-in blank is not filling all cells


    Jaslake!
    That is great!
    Thank you very much!

  7. #7
    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: Fiill-in blank is not filling all cells

    Hi AB33

    You're welcome...glad I could help. Thanks for the style points.

+ 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