+ Reply to Thread
Results 1 to 4 of 4

xltoright

  1. #1
    Registered User
    Join Date
    02-10-2012
    Location
    ON
    MS-Off Ver
    Excel 2010
    Posts
    12

    xltoright

    Ok I have a problem with xltoright ..


    basically I have my macro look for a certain age that is found in a text box called "compage"

    when it finds the age it offsets the cell down one

    then I want to clear everything under it

    so here is my code

    Please Login or Register  to view this content.
    the problem is there is "blank" cells or cells with a formula that = 0

    I still want those to be deleted but it stops when it gets to them ,

    how can I fix this

    so for example lets say the age is found at 47

    I want it to clear everything under it even if the cell = 0

    Capture.jpg

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: xltoright help

    c7015,

    This should work for you:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: xltoright help

    Or

    Please Login or Register  to view this content.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    02-10-2012
    Location
    ON
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: xltoright help

    thank you both for your replies , I had just come back to post that I had done this to solve


    Please Login or Register  to view this content.

+ 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