+ Reply to Thread
Results 1 to 5 of 5

Copy & Paste one or more cell values to

  1. #1
    Registered User
    Join Date
    10-25-2008
    Location
    North Yorkshire
    Posts
    3

    Copy & Paste one or more cell values to


    Tried all day to find a way of selecting text ( from several cells) on one sheet and then having it pasted into the textbox on another sheet.
    Is it possible?.

    I did originally paste the text to a cell but it makes the row's vary in size depending on the copied text and gets a bit annoying. Seems to be
    This is the paste to Cell code

    Please Login or Register  to view this content.
    Any help gratefully appreciated
    Last edited by VBA Noob; 10-26-2008 at 05:36 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    You code makes no reference to a textbox. If you want the catenated result of several cells added to a textbox, you'll need additional code.

    Please post a workbook and explain in context.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe something like.

    Change range to you're range

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    10-25-2008
    Location
    North Yorkshire
    Posts
    3

    Working with Textbox

    Hi
    Not sure how to post workbook?
    Also not explaining it very well.(Try Again)
    Three pages of the workbook have data in them, the common ref is a "SAP No".
    I have a front sheet with a listbox referencing a column on the first sheet by location name.
    When the name in the listbox is selected the the macro collects other data linked to the "Sap No" from sheets 2 + 3 and populates the front sheet using simple copy and paste.
    The problem is that the data copied in sheet3 can be any number of rows on the same column and varying lenghts of text in each row.
    And when this is paste into a cell on the front sheet it causes the row high to vary to accomodate the word wrap and show all the data.
    I have placed a TextBox (AllFeedBack) on the front sheet and would like to paste the data from Sheet3 into that so the row height does not vary.
    Hope this is clearer.
    Let me know how to post the workbook and I will do so
    Cheers Brian

  5. #5
    Registered User
    Join Date
    10-25-2008
    Location
    North Yorkshire
    Posts
    3

    Smile SORTED Combining Text from a few Cells to Textbox

    Sorted the problem.
    Used VB Code (Discovered on line) to copy and paste text contents of several cells into one cell.
    Then used the link Cell property of the TextBox to reference the new cell containing all the text.
    Works a treat and no more rows expanding and contracting.

+ 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