+ Reply to Thread
Results 1 to 5 of 5

Userform textbox to excel sheet

  1. #1
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Userform textbox to excel sheet

    Hello all. I have a userform with a textbox (TextBox1) I would like to make it so the values from textbox1 come from sheet2 cell A1 OR if I enter values directly into the textbox they show on cell A1

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Userform textbox to excel sheet

    Hi wonderd,

    I have a userform with a textbox (TextBox1) I would like to make it so the values from textbox1 come from sheet2 cell A1
    Try this:

    Please Login or Register  to view this content.
    OR if I enter values directly into the textbox they show on cell A1
    Use this as the source code for a command button on your form which is just the opposite of the first piece of code:

    Please Login or Register  to view this content.
    HTH

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Userform textbox to excel sheet

    I have tried the first piece of code and it did not work. I would like it to automatically be done without a command button if possible. I entered values into the textbox but I do not see it show on sheet2

    On my useform there is no "Private Sub UserForm_Initialize()" So I added it. I only had _Activate and _Click private subs

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-07-2013
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    215

    Re: Userform textbox to excel sheet

    bump, Anyone?

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,025

    Re: Userform textbox to excel sheet

    Everyone who confuses correlation and causation ends up dead.

+ 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] Userform textbox date sorting problem in main sheet
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2014, 09:28 PM
  2. [SOLVED] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  3. [SOLVED] userform textbox to search entire sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-26-2013, 03:54 PM
  4. Replies: 3
    Last Post: 05-07-2012, 09:46 PM
  5. Move userform TextBox entries to cells on a sheet
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2011, 10:33 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