ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text-align in buttons userform (https://www.excelbanter.com/excel-programming/371149-text-align-buttons-userform.html)

Gert-Jan

Text-align in buttons userform
 
The text in standard buttons in userforms is center-aligned. Is it possible
to make it right / left?

Gert-Jan



moon[_5_]

Text-align in buttons userform
 

Just be inventive.
Create a 24x16 jpg-image (depending on your button size) and give it color
#D4D0C8 (R 212, G 208, B 200)
In the Buttons properties, select that image and set PicturePosition to 1.
fmPicturePositionLeftCenter
Add a couple of spaces before the Buttons caption, and you're done.




"Gert-Jan" schreef in bericht
...
The text in standard buttons in userforms is center-aligned. Is it
possible to make it right / left?

Gert-Jan





All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com