+ Reply to Thread
Results 1 to 5 of 5

How to skip rows with value in a column using next available row code

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    perth,australia
    MS-Off Ver
    Excel 2007
    Posts
    25

    How to skip rows with value in a column using next available row code

    Good Day All

    The following code I am using to populate a worksheet, from a userform, is working well but I would like to skip rows if they have a value in column B. I have been searching the forum and Google but can't figure it out. Is there a way to add a piece of code to do this or do I need to reconstruct?

    Thanks for your time everone

    Please Login or Register  to view this content.
    Last edited by fremarco; 08-14-2012 at 01:02 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: How to skip rows with value in a column using next available row code

    Hi

    Are you saying that you may have an item in column B that is further down than the last item in column A, or that if the offset from LastRow contains data, you don't want it to be overwritten?

    rylo

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    perth,australia
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: How to skip rows with value in a column using next available row code

    Hi Rylo. Thanks for responding

    The answer is yes, and yes. Basically, after the userform has inputed data to rows A32/A33, I am trying to skip to row A49. Does that make sense?

    Cheers

    Fred

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: How to skip rows with value in a column using next available row code

    Change to
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  5. #5
    Registered User
    Join Date
    03-13-2012
    Location
    perth,australia
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: How to skip rows with value in a column using next available row code

    Thanks Mike. It works a treat. All the best to you

    Fred

+ 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