Pasting a large amount of text from many sheet columns in a userform textbox when form initializes

chazrab

Well-known Member
Joined
Oct 21, 2006
Messages
884
Office Version
  1. 365
Platform
  1. Windows
Sheet2 has two columns A and B. Column A has one line of text with only 50 characters max. Column B has multiline text.
There are 31,103 rows of data. I can do Ctrl A and copy and paste the entire 31103 rows of text when the form activates, no problem.
The textbox needs to populate(load) with the data in the Userform Initialize event every time the userform initializes.

Row A must be "added" to row B. How would I do this ? The code in the image just shows combining data from both cols. from a listbox on the userform and "adding" row A to row B.
I don't want to display listbox rows. I just want to achieve the same result in a textbox(The visual appearance is much better to me han a listbox view).

Please help with this if you can. ( If I can manually copy and paste the data in the textbox each time, code should
be able to do the same thing in the initialize event)

Thanks for all your help.
cr
 

Attachments

  • DATA.png
    DATA.png
    10.3 KB · Views: 17
  • USERFORM.png
    USERFORM.png
    18.3 KB · Views: 17
  • CODE.png
    CODE.png
    8.5 KB · Views: 16

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Although I have no idea how this would be done it must be possible since Ctrl-A + Ctrl=V will copy and paste into the Textbox on the userform when it is run
but disappears when the form closes.
 
Upvote 0

Forum statistics

Threads
1,214,804
Messages
6,121,652
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top