Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Text Boxes and macros

Can a macro replace text in a text box? How?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default 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?



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default 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?



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default 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?



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default 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?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I link Text Boxes to Cells, not Cells to Text Boxes? Ebby Excel Worksheet Functions 1 May 15th 07 11:31 PM
Help with combo boxes and macros in Excel 2003 Carrie Excel Discussion (Misc queries) 3 May 18th 06 08:24 PM
I need help with macros and check boxes. Marc New Users to Excel 2 March 20th 06 04:20 PM
In Excel, option to enter text in cells the same as text boxes RobGMU Excel Worksheet Functions 0 October 26th 05 04:20 PM
Macros to delete check boxes GWB Direct Excel Discussion (Misc queries) 23 June 3rd 05 09:56 PM


All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"