Text Boxes and macros

B

Bob Phillips

Userform1.TextBox1.Text = "abc"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

BenT

Thanks Bob
I also want to change text size and Font. Can you help with a small example code.
Thanks very much.
Bent
Userform1.TextBox1.Text = "abc"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

Bob Phillips

With UserForm1.TextBox1
With .Font
.Name = "Arial"
.Size = 11
End With
.Text = "abc"
End With

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



Thanks Bob
I also want to change text size and Font. Can you help with a small example code.
Thanks very much.
Bent
Userform1.TextBox1.Text = "abc"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
B

BenT

Bob
Thank you very much.
Bent

With UserForm1.TextBox1
With .Font
.Name = "Arial"
.Size = 11
End With
.Text = "abc"
End With

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



Thanks Bob
I also want to change text size and Font. Can you help with a small example code.
Thanks very much.
Bent
Userform1.TextBox1.Text = "abc"

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top