LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Transferring Captions/Text between UserForms

This might be hard to explain...

I have a useform with 24 buttons and 24 textboxes. Each button corresponds
to a textbox next to it. The idea is to click a button to open up another
userform with several optionbuttons, then click the optionbutton and have the
optionbutton caption be put into the textbox that corrisponds to the button
that was originally clicked. (hope that makes sense)

I have tried assigning a variable (as String) to pass between the userforms,
but the caption gets lost (comes back blank).

(on UserForm1)
Private Sub cmdbutton_Click()
Dim myVar as String
buttonbox.Text = myVar
UserForm2.Show
End Sub

(on UserForm2)
Private Sub optionbutton1_Click()
myVar = optionbutton1.Caption
Unload Me
End Sub


 
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
Transferring text from one worksheet to another txmusic Excel Discussion (Misc queries) 1 March 18th 10 02:18 AM
Formatting Text Boxes & Label Captions in MultiPages Drummer361 Excel Programming 0 August 16th 06 01:09 AM
transferring from excel to text lbierer New Users to Excel 1 December 1st 05 09:06 PM
Sending/Transferring Text? Clint Keller Excel Programming 1 May 19th 04 11:09 PM
Transferring data entered into a Text box to another Cell/Sheet? Alan T[_2_] Excel Programming 1 October 29th 03 12:54 AM


All times are GMT +1. The time now is 04:14 PM.

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

About Us

"It's about Microsoft Excel"