+ Reply to Thread
Results 1 to 7 of 7

Paste copied cell range into multiple userform textboxes

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    molde
    MS-Off Ver
    Excel 2010
    Posts
    49

    Paste copied cell range into multiple userform textboxes

    Hi
    Is there a way to paste a copied cell range into multiple userform textboxes?

    The copied cell range comes from different other workbooks.

    Example: I have copied cell range a1:a5 and want to paste it into textboxes 1 to 5 in Userform1.

    Is this possible?

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Paste copied cell range into multiple userform textboxes

    if you put the copied range into an array you can access that array to fill your texboxes.
    It all depends on how you access your other workbook.

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    molde
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Paste copied cell range into multiple userform textboxes

    the other workbook and the cell range is opened and copied manually.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Paste copied cell range into multiple userform textboxes

    Try this one.
    Open sample workbook. Copy range from other workbook - Open UserForm and click CommandButton.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-01-2012
    Location
    molde
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Paste copied cell range into multiple userform textboxes

    Perfect!! But what if the cell range that is copied is a1:e1?

  6. #6
    Registered User
    Join Date
    10-01-2012
    Location
    molde
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Paste copied cell range into multiple userform textboxes

    Enyone know if the same thing can be done if the range copied is a1:e1?

  7. #7
    Registered User
    Join Date
    02-11-2021
    Location
    Missouri, USA
    MS-Off Ver
    MSOffice 2019
    Posts
    1

    Re: Paste copied cell range into multiple userform textboxes

    This is a really old thread, but I was trying to find this exact answer and I needed to copy a row of cells, not a column of cells.

    Using the work done by Bakerman2, here's how I reworked it to do that and to determine "row" or "column" of data. Just copy this code and replace the original code in Bakerman2's file.

    This example is only for a single row of cells OR a single column of cells, not both at the same time.

    Hope this helps someone out!
    Uncle Rogi

    Please Login or Register  to view this content.

+ 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. Format Multiple Textboxes at once in a Userform
    By Dan... in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2015, 05:34 PM
  2. Replies: 1
    Last Post: 02-17-2015, 07:11 AM
  3. [SOLVED] Color Textboxes in Userform If Tetxbox name is in Range
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-03-2014, 03:04 AM
  4. Copy paste userform textboxes to word
    By welshman010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2014, 10:45 PM
  5. Paste a copied cell value into multiple cells?
    By hotwoz in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 08:44 AM
  6. Replies: 3
    Last Post: 01-11-2012, 02:04 PM
  7. Formatting Multiple Userform Textboxes
    By badeye in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-01-2010, 09:14 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