+ Reply to Thread
Results 1 to 4 of 4

Copy and paste from textbox to worksheet

  1. #1
    Registered User
    Join Date
    11-04-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    62

    Copy and paste from textbox to worksheet

    Hello, just wondering if someone can help me please. I have a 3 userforms with textboxes and command buttons. When the user clicks the last command button on each userform all the data from the textboxes on that userform are concatenated and put in a string on a worksheet (sheet4). This works fine for userform1 as i simply state i want it pasted in rangeA2 on sheet4. However, when i do the same for userform2 and 3 I want this data to be pasted in sheet 4 straight after the last character that was pasted from userform1. I cant just say paste in location of cell A2 for example because each character does not have its own cell, its just simply pasted in a long string. Does anyone know how i can state the location so that the string from userform2 can be pasted in following on from the userform1 data?

    Thankyou for any help

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Copy and paste from textbox to worksheet

    You'd need to concatenate the values. Something like:
    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-04-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copy and paste from textbox to worksheet

    Thankyou this has worked!!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Copy and paste from textbox to worksheet

    You're welcome.

+ 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] Copy First Three Letters Of Some Textbox And Paste It to Another textbox
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-19-2013, 01:08 PM
  2. [SOLVED] Copy First Three Letters Of Some Textbox And Paste It to Another textbox
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2013, 03:46 PM
  3. VBA - Macro Code to copy textbox text to another worksheet textbox
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2013, 08:39 AM
  4. Macro to copy textbox data to a duplicate textbox in another worksheet
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2013, 06:10 AM
  5. Copy/Paste from worksheet to textbox in userform
    By jarrods in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2009, 05:52 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