+ Reply to Thread
Results 1 to 2 of 2

Copy TextBox Value to a range in Excel

Hybrid View

CobraLAD Copy TextBox Value to a range... 08-14-2007, 06:29 AM
SOS CobraLAD, Something like... 08-14-2007, 06:37 AM
  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2024
    Posts
    347

    Copy TextBox Value to a range in Excel

    I have a list of names in Column A, I want to use a textbox and a commandbutton to add new names to column a. I only need to now the command to copy the value in the textbox to a range in excel

  2. #2
    Forum Contributor SOS's Avatar
    Join Date
    01-26-2004
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    327
    CobraLAD,

    Something like this could help

    Private Sub CommandButton1_Click()
        lastcel = Range("A1").End(xlDown).Address
        Range(lastcel).Offset(1, 0).Value = TextBox1.Value
    End Sub
    Hope this helps

    Seamus

+ 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