printing out a textbox contents.

medic5678

Board Regular
Joined
Nov 13, 2018
Messages
67
I have rather large textbox where a user can type notes and use the return key for spacing, etc.

textbox1.value is (example)

1. Problem1. Solution is blah blah blah.

2. Problem 2. Solution is blah blaha blah.

3.etc

4.etc

5.etc



The question is how I can parse this line by line to my worksheet so I can print it out with Excel? I would just expand a cell height to contain the whole note *but* it cannot handle the enter keys this is spaced with. Am I overlooking a very basic, easy way to do this?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I've inserted a textbox to my Excel file, textbox1. The question is *how* to copy the contents of my userformtextbox to the one in the worksheet.
 
Upvote 0
rivate Sub CommandButton3_Click()
Dim tb As Shape
Set tb = Sheet1.Shapes("TextBox 1")
tb.TextFrame.Characters.Text = ShiftNoteTBX.Value


End Sub

Turned out to be amazingly easy. Wow, this is one POWERFUL program.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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