+ Reply to Thread
Results 1 to 5 of 5

VBA code to copy data from text box and input into a cell in another worksheet

  1. #1
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    VBA code to copy data from text box and input into a cell in another worksheet

    This is probably far easier then I am making it but I need to take the information that is in a textbox created through the control toolbox and copy and paste that information into a cell on different tab in the workbook. I have tried the infamous google and haven't been able to find much. The excel books that I have don't really touch on the control toolbox functions.

    Thanks a bunch for any help!!!
    Last edited by bobaftt; 03-24-2009 at 12:32 PM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: VBA code to copy data from text box and input into a cell in another worksheet

    Hi, Right Click the TextBox in Design Mode, Select "View Code" and Paste code into VB Window.
    Please Login or Register  to view this content.
    Mick

  3. #3
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: VBA code to copy data from text box and input into a cell in another worksheet

    wow that was fast. Thanks so much!

  4. #4
    Registered User
    Join Date
    03-29-2011
    Location
    manila, manila
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA code to copy data from text box and input into a cell in another worksheet

    Hi,

    I was trying to copy the data entered into the textbox of my userform but was not able to paste them upon pressing my command button.

    Here's my codes:

    Private Sub CommandButton1_Click()

    TextBox1.Copy
    TextBox2.Copy
    TextBox3.Copy
    Range("A2").Select

    Do
    If IsEmpty(ActiveCell) = False Then
    ActiveCell.Offset(1, 0).Select
    End If

    Loop Until IsEmpty(ActiveCell) = True

    'portion wherein I was not able to add a code to paste it in column

    End Sub

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: VBA code to copy data from text box and input into a cell in another worksheet

    dyodyoYour post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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