ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Userform Captions (https://www.excelbanter.com/excel-programming/362074-userform-captions.html)

Greg[_27_]

Userform Captions
 
Is there any way to centre the writing on a caption on a userform?

Thanks

Greg



Chip Pearson

Userform Captions
 
No.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Greg" wrote in message
...
Is there any way to centre the writing on a caption on a
userform?

Thanks

Greg




Greg[_27_]

Userform Captions
 
Thanks Chip

Greg
"Chip Pearson" wrote in message
...
No.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Greg" wrote in message
...
Is there any way to centre the writing on a caption on a userform?

Thanks

Greg






RB Smissaert

Userform Captions
 
You can sort of by putting the right number of spaces before the caption.
Unfortunately it will never be very accurate as VBA doesn't have the
TextWidth property like
VB has. So you will have to work out some complex calculations and even then
it won't be
precisely centred.

RBS


"Greg" wrote in message
...
Is there any way to centre the writing on a caption on a userform?

Thanks

Greg




All times are GMT +1. The time now is 03:38 AM.

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