vba to shrink to fit text in a text box

GCPaul

New Member
Joined
Feb 23, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
Hi
I have a text box that is a fixed height and width, and has 2 lines of text. The text itself is from a cell and is variable, text lengths could be anything from 7 to 40 characters. I need the text to fit either on one line or 2, but for the text to fill the lines depending on how many characters they have. The text box is on a worksheet, not a form.
I have the same scenario, but the text needs to fit a box which is one line only, and be formatted to use a £ symbol to represent a price e.g £39.99

Hope someone can help!
Paul
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,883
Messages
6,175,168
Members
452,615
Latest member
bogeys2birdies

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