Justified text in textbox

Bradon

Board Regular
Joined
Dec 18, 2002
Messages
66
When I use "Distribute" as the setting for text align I have problems with lines that only contain a few words - access evenly spaces each letter accross the entire width of the textbox.

Is there any way to force short lines to be "left" align?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I suppose you could use code to check the length of the text and change the property appropriately.

It would need to be triggered by some event.

Which one would depend on where this textbox is located, a form, report etc.
 
Upvote 0
The textbox is on a report. Apart from the form opening in preview there is no other action apart from the print command.

Any suggestions as to the code?
 
Upvote 0
cant you just do what you do in word...
dont get me wrong i've not completely sure but i thought this might help
couldn't u just highlight the short sentances and click the left align button?
not too sure on this its not really my field of work. but just try it, it might just be what u were looking for :)
 
Upvote 0
Nice try, but the textbox is drawing on several fields for its content. Access isn't quite as flexible as word for formatting.

This one is for the geniuses who can write "R :pray: eal Code"
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,415
Members
451,762
Latest member
Brainsanquine

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