Trying to add a TAB into a label/text box

homer2002

Registered User.
Local time
Today, 23:59
Joined
Aug 27, 2002
Messages
152
Why is is whenever I try to enter a tab into a text/label using VBA
it always comes out wrong (i get the same with chr(13) by adding chr(10) to the end....

but if i try to create a label with tabs in it, it always screws up..


e.g.

lblLabel.caption = "Hello" & vbtab & "this is a tab"

should look like this
Hello this is a tab

but it ends up looking somthing like this.


Hello|This is a tab
 
Thanks, but that makes no difference... any other ideas?

can anyone make this line below actually make the TAB appear on a label.
You'd think this would be simple really wouldnt you.:D


___________________________________________

lblALABEL.CAPTION = "THIS IS MEANT TO" & vbTAB & "BE TABBED ACROSS"
___________________________________________

or

lblALABEL.CAPTION = "THIS IS MEANT TO" & chr(9) & "BE TABBED ACROSS"

___________________________________________
 
Last edited:

Users who are viewing this thread

Back
Top Bottom