+ Reply to Thread
Results 1 to 6 of 6

copying text from 1 text box to another

Hybrid View

  1. #1
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80

    copying text from 1 text box to another

    Hello All,

    I have created 4 text boxes in excel using the control toolbox. 1st box is called Name,2nd is called Date, 3rd is called Amount and the 4th is called Main.

    My users will enter the info in the 1st,2nd and 3rd text box, now I have created a command button next to each of these text boxes to copy the info into the 4th text box called Main. The command buttons are all called Go What would be the code that I would need to enter in those command buttons... Can that be done?
    Last edited by slmi1313; 10-09-2008 at 11:58 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Does each button copy the data from the 3 text boxes into the 4th, or does it only copy the data from the one next to it? And what does it do with any existing data in the 4th textbox? Overwrite, append???


    rylo

  3. #3
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80
    only from the one next to it, and when it copies it in the 4th text box it has to follow any other text that is in that 4th text box

  4. #4
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80
    Rylo, do you have anything for me, my project is almost done but Im stuck any help would be greatly apreciated

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Each button will have code along the lines of

    textbox4.text = textbox4.text & " " & textbox[1,2,3].text
    where the [1,2,3] will relate to the textbox to the left of the specific button.

    rylo

  6. #6
    Registered User
    Join Date
    09-13-2008
    Location
    Montreal
    MS-Off Ver
    Office XP
    Posts
    80
    wow you are the best thank you so much

+ 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. Find row number of text string in a range of cells
    By Steven Fleck in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-06-2013, 08:38 PM
  2. Copying values to a text box
    By slmi1313 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-21-2008, 08:34 PM
  3. Copying the text in a cell to a text box
    By ersinergun in forum Excel General
    Replies: 1
    Last Post: 02-07-2008, 02:40 PM
  4. copying selected text from one column to another
    By annie79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2007, 05:42 AM
  5. Copying text from concatenated cell
    By gmanob in forum Excel General
    Replies: 2
    Last Post: 07-10-2007, 03:20 PM

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