+ Reply to Thread
Results 1 to 5 of 5

Userform Multi select List box copy to clipboard

  1. #1
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Userform Multi select List box copy to clipboard

    Hello, I have a listbox named lbxOracleProduct and that's all it does is show two columns of data that is in a cell range on my Sheet1 and nothing more. I have it set to,

    1) ListStylePlain
    2) frmMultiSelectMulti

    so I can shift select what rows I want to copy to clipboard. I found some code but cant get it to work correctly. First, I select a few rows in my listbox then click the copy button and paste it into word and it copy's ONE of my entire columns and not the other one.

    How can I get it to copy to clipboard what is highlighted in my listbox?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform Multi select List box copy to clipboard

    Change the 1 to a zero in this line.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Userform Multi select List box copy to clipboard

    Ok that solved my only copying of one column now it copys both columns BUT it still copys all the data in my list box instead of the rows I shift/selected to copy. Any thoughts?

    Thanks,

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform Multi select List box copy to clipboard

    Quote Originally Posted by oxicottin View Post
    Ok that solved my only copying of one column now it copys both columns BUT it still copys all the data in my list box instead of the rows I shift/selected to copy. Any thoughts?

    Thanks,
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-18-2006
    Location
    WV
    MS-Off Ver
    2003,2007,2010
    Posts
    69

    Re: Userform Multi select List box copy to clipboard

    Awsome! That worked perfectly.... Thanks!

+ 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