+ Reply to Thread
Results 1 to 7 of 7

Entering Text Box Data into Next Empty Cells

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Post Entering Text Box Data into Next Empty Cells

    Hi Everyone,

    I am caught in an areas where I have learned how to find the next available empty row by going far down my worksheet, counting up until I reach a filled row and then offsetting that value by 1 as seen here below:
    NextRow = Sheet1.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row

    My difficuly lies in assigning the cells in this empty row the data a user can input in my text boxes; let's say there are 4 text boxes which need to be put into the following cells:
    • Text box 1 (Text value) needs to be assigned next empy cell in column: A
    • Text box 2 (Text value) needs to be assigned next empy cell in column: B (1 offset away from A)
    • Text box 3 (Numeric value) needs to be assigned next empy cell in column: F (5 offsets away from A)
    • Text box 4 (Numeric value) needs to be assigned next empy cell in column: H (7 offsets away from A)

    How would I go about using my identified "NextRow" and then plug in these text box values into their appropriate cells down that row?

    A big pre-emptive thank you for any guidance along this front.

    - Publicpenguin

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Entering Text Box Data into Next Empty Cells

    Please post the code ( workbook is better )
    In the mean time:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 03-01-2014 at 07:27 PM.
    Ben Van Johnson

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Entering Text Box Data into Next Empty Cells

    See the macro in the attached workbook
    Attached Files Attached Files
    Gary's Student

  4. #4
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Entering Text Box Data into Next Empty Cells

    Hi,

    Understood. I believe I've attached the workbook appropriately here.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Entering Text Box Data into Next Empty Cells

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Entering Text Box Data into Next Empty Cells

    Hi ProtonLeah and Jakobshavn,

    The array function is fantastic as it helps keep my assigned values with the same row as my row count. It took me a minute to grasp some ** the simple things such as the column size declaration, but overall this has been a huge help. Thank you for the help here.

    - Publicpenguin

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Entering Text Box Data into Next Empty Cells

    You're welcome

+ 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. [SOLVED] Export Data in Rows, Separated by Empty Cells to Text Files
    By leoxanigm in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-16-2014, 09:53 AM
  2. [SOLVED] sheet1 w/ empty cells between data set, need sheet2 no empty cells, same data set
    By chestersneakers7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-14-2013, 02:39 PM
  3. Entering Data to next empty row
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2011, 03:18 PM
  4. Lock cells from entering text when value is met
    By Propnistasaga in forum Excel General
    Replies: 0
    Last Post: 06-14-2010, 08:08 AM
  5. entering number in Text cells
    By ballack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2007, 05:46 AM

Tags for this Thread

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