+ Reply to Thread
Results 1 to 12 of 12

Find first empty cell in column and enter value from textbox

Hybrid View

  1. #1
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Find first empty cell in column and enter value from textbox

    JB's solution is elegant and I'm certain will be that answer that you need, however the one thing I would mention is that it would enter the value in the next empty cell at the bottom of a column of data (ignoring any empty cells interspersed within the data). If you need to find the first empty cell then your piece of code is the one to utilise:

    Private Sub TextBox1_Change()
        Range("A1").End(xldown).Offset(1,0).Value = TextBox1.Value
    End Sub

  2. #2
    Registered User
    Join Date
    09-09-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    21

    Re: Find first empty cell in column and enter value from textbox

    The code returned a value in the columns cells below the selected cell.

    For example:
    c
    co
    col
    colu
    colum
    column

    Private Sub TextBox1_Change()
    Range("A2").End(xlDown).Offset(1, 0).value = TextBox1.value
    ActiveCell.value = TextBox1.Text
    End Sub

+ 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: 5
    Last Post: 05-13-2014, 10:19 AM
  2. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  3. [SOLVED] Find the last cell with value in column E and Send value of textbox to the same row in col
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-24-2013, 12:15 PM
  4. [SOLVED] Macro to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  5. [SOLVED] Loop to find cells based on criteria, enter formula into next empty column
    By cschoyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2012, 03:32 PM

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