+ Reply to Thread
Results 1 to 4 of 4

Listbox Contents to Clipboard

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    Roseville, USA
    MS-Off Ver
    Excel 2013
    Posts
    15

    Listbox Contents to Clipboard

    I have a userform working as expected; checkboxes filter data on a spreadsheet and when the user is done, the user hits a button and the filtered data lands on a listbox within the form. Problem is the user requirement has changed. Users now need to copy the contents from the listbox; think copy and paste into who knows what. The contents of the listbox will be a simple, single column of text data. A bit of research validates that we cannot copy text from the list box. Please point me in the right direction – what should I be populating the filtered results in? I first thought a text box was appropriate but it seems that text boxes are designed around user input, I tried to copy data from the listbox into a text box, no luck.
    Thank you in advance for any direction.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Listbox Contents to Clipboard

    Hello mikegs1,

    This macro will copy the contents of the ListBox to the clipboard. Change the names of the controls to match your own.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-02-2014
    Location
    Roseville, USA
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: Listbox Contents to Clipboard

    Perfect. Thank you Leith.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Listbox Contents to Clipboard

    Hello mikegs1,

    You're welcome. Thanks for marking your solved.

+ 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. Clear sheet contents but retain Clipboard contents
    By nebb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2007, 01:42 PM
  2. How to clear the clipboard contents in VBA
    By Wilbur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2006, 10:10 AM
  3. Clear clipboard contents
    By Cordobes in forum Excel General
    Replies: 4
    Last Post: 11-21-2005, 10:45 PM
  4. [SOLVED] Keep contents in clipboard
    By Kenny in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2005, 04:05 PM
  5. VBA: Answer YES to Contents of Clipboard
    By ajocius in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2005, 10:50 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