![]() |
Text Boxes and macros
Can a macro replace text in a text box? How?
|
Text Boxes and macros
Userform1.TextBox1.Text = "abc"
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bent" wrote in message ... Can a macro replace text in a text box? How? |
Text Boxes and macros
Thanks Bob
I also want to change text size and Font. Can you help with a small example code. Thanks very much. Bent "Bob Phillips" wrote in message ... Userform1.TextBox1.Text = "abc" -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bent" wrote in message ... Can a macro replace text in a text box? How? |
Text Boxes and macros
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) "BenT" wrote in message ... Thanks Bob I also want to change text size and Font. Can you help with a small example code. Thanks very much. Bent "Bob Phillips" wrote in message ... Userform1.TextBox1.Text = "abc" -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bent" wrote in message ... Can a macro replace text in a text box? How? |
Text Boxes and macros
Bob
Thank you very much. Bent "Bob Phillips" wrote in message ... 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) "BenT" wrote in message ... Thanks Bob I also want to change text size and Font. Can you help with a small example code. Thanks very much. Bent "Bob Phillips" wrote in message ... Userform1.TextBox1.Text = "abc" -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "bent" wrote in message ... Can a macro replace text in a text box? How? |
All times are GMT +1. The time now is 09:20 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com