ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Label in a form (https://www.excelbanter.com/excel-programming/428276-label-form.html)

alvin Kuiper

Label in a form
 
Hi
Is there away to rotet a text in a label 90 degres ?

Alvin


Jacob Skaria

Label in a form
 
Dear Alvin

You could try this after placing a label with enough height and a command
button in a user form.

Private Sub CommandButton1_Click()
UserForm1.Label1.Caption = Replace("A D M I N", " ", vbCr)
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"alvin Kuiper" wrote:

Hi
Is there away to rotet a text in a label 90 degres ?

Alvin


alvin Kuiper

Label in a form
 
Yes
But this would not rotate the letters

alvin


"Jacob Skaria" skrev:

Dear Alvin

You could try this after placing a label with enough height and a command
button in a user form.

Private Sub CommandButton1_Click()
UserForm1.Label1.Caption = Replace("A D M I N", " ", vbCr)
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"alvin Kuiper" wrote:

Hi
Is there away to rotet a text in a label 90 degres ?

Alvin


Andy Pope

Label in a form
 
Hi,

If the text is static consider using an image. Use autoshape textbox and
change alignment.
The copy the textbox as picture. Select textbox. Whilst holding shift use
menu, Edit Copy Picture Bmp.

Then within your userform add a Image or Label. Select the Picture property
and paste.

If the text is dynamic then there is code here to create/copy/paste shape on
the fly
http://www.andypope.info/vba/userformdraw.htm

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"alvin Kuiper" wrote in message
...
Hi
Is there away to rotet a text in a label 90 degres ?

Alvin




All times are GMT +1. The time now is 11:04 PM.

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