+ Reply to Thread
Results 1 to 5 of 5

Find next empty row within range

  1. #1
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Find next empty row within range

    Hi all,

    Just need the following code tweaking.

    The following code allows me to find the next empty row so that I can use a userform to input data into sheet 1 using text boxes.

    Please Login or Register  to view this content.
    ...however I would like to adjust the erow = line so that it finds the next empty row between a certain range (for instance, find the next empty row between row 5 to row 20 and then enter data from textboxes).

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Find next empty row within range

    This finds the first blank below A5

    Please Login or Register  to view this content.

    You will need some code to deal with cases where the blank is after row 20
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Re: Find next empty row within range

    Hi mehmetcik,

    Thanks for the speedy response. I've adjusted my code to:

    Please Login or Register  to view this content.
    ... but can't get it working. It's selecting the right place but not entering the data. Apologies if i'm being stupid (new to VBA).

    I've attached my workbook if this helps demonstrate.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Find next empty row within range

    You misunderstood me.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-22-2015 at 12:32 PM.

  5. #5
    Registered User
    Join Date
    11-19-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    43

    Re: Find next empty row within range

    Ah right, my bad.

    Works like a charm. I just needed to change .select to .row to pull in the row number.

    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-04-2013, 07:41 PM
  2. [SOLVED] Range Find is Empty [Excel 14/2010] (VBA Only)
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2013, 02:06 PM
  3. shift range of cells to left if find the range of empty do while
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2012, 09:25 AM
  4. Find first empty row in a specific range
    By orlando_javier in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2010, 03:09 PM
  5. find empty cell in range
    By waltron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2010, 01:12 AM

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