How do I format text in a text box in a userform?

KentBurel

Board Regular
Joined
Mar 27, 2020
Messages
68
Office Version
  1. 2019
Platform
  1. Windows
I have a textbox in a cell on my worksheet. The text within that textbox is formatted. The title line is centered and the body contains bulleted text. I want to remove this textbox from the cell and move it to a textbox in a userform. That way I can display it indepently of the underlying worksheet. How do I move my textbox from the worksheet to a userform while maintaining the pretty formatting?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Not sure you can adjust the font, alignment, etc. for portions of text in a userform textbox, only for the whole thing. (Maybe there's a richtextbox control instead?) But you can set a userform textbox to multiline and use Shift+Enter to add new lines. You can type the header, then Shift+Enter a couple times, then paste in a bullet symbol (e.g. ALT+0149 or use the Windows Character Map to find, copy & paste it). You can create a multi-line bulleted list that way, it just might not be pretty.

An alternative might be to create a few textboxes with flattened edges that sit right next to each other. You could have one for the heading and set it to bold, centered, etc. and then another for the bulleted list.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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