#1   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Command button

I have a userform(1) with 12 textboxes, in each textbox there is a name.
Userform2 there are 12 commandbuttons which will open userform to amend
details.
Is there a way that the commandbuttons reflect what is written in each
textbox?
--
AOU
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Command button

Private Sub Userform_Activate()

With Me
.CommandButton1.Caption = Userform1.TextBox1.Text
'etc
End With

this presumes that you haven't unloaded the first form.

--
HTH

Bob

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

"AOU" wrote in message
...
I have a userform(1) with 12 textboxes, in each textbox there is a name.
Userform2 there are 12 commandbuttons which will open userform to amend
details.
Is there a way that the commandbuttons reflect what is written in each
textbox?
--
AOU



  #3   Report Post  
Posted to microsoft.public.excel.misc
AOU AOU is offline
external usenet poster
 
Posts: 54
Default Command button

Bob,
Fantastic.........you must have a huge brain!
It works a treat....many thanks
--
AOU


"Bob Phillips" wrote:

Private Sub Userform_Activate()

With Me
.CommandButton1.Caption = Userform1.TextBox1.Text
'etc
End With

this presumes that you haven't unloaded the first form.

--
HTH

Bob

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

"AOU" wrote in message
...
I have a userform(1) with 12 textboxes, in each textbox there is a name.
Userform2 there are 12 commandbuttons which will open userform to amend
details.
Is there a way that the commandbuttons reflect what is written in each
textbox?
--
AOU




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
Command Button Freshman Excel Worksheet Functions 6 June 1st 07 07:15 AM
command button big show Excel Worksheet Functions 1 January 29th 07 02:38 PM
VBA Command Button IntricateFool Excel Discussion (Misc queries) 5 December 8th 06 04:39 AM
Command Button Steved Excel Worksheet Functions 2 February 19th 06 11:01 PM
command button Mike New Users to Excel 1 August 30th 05 01:39 AM


All times are GMT +1. The time now is 12:45 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"