textboxes and userforms

JONESY

Board Regular
Joined
Jul 23, 2004
Messages
63
Hi Guys
I have a multipage (3) userform(Usrfrm1) each page has 46 textboxes. On entry into a particular textbox on each page I want to launch another userform (Usrfrm2) which is a scripting dictionary that finally gives a unique code, on button click I want it to put the unique code into the multipage userform activetextbox.

Me.MultiPage1.Pages(Me.MultiPage1.Value).ActiveControl.Name
This gives me the textbox name of the activetextbox in the Multipage Userform...but

How do I get this value to be recognised in the other userform (Usrfrm2)?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

xl_psychic

Active Member
Joined
Jan 4, 2004
Messages
359
Wouldn't it be Usrfrm1.MultiPage1.Pages(Usrfrm1.MultiPage1.Value).ActiveControl.Name

Hope this helps..
 

JONESY

Board Regular
Joined
Jul 23, 2004
Messages
63
Hi you could use the name of the userform but this is not the issue as Me does that job fine if I say

Commcode = Me.MultiPage1.Pages(Me.MultiPage1.Value).ActiveControl.Name

This is in Textbox26_Enter, so on entering TB26 Commcode = "Textbox26"

but I cannot export this value to Usrfrm2 because I want to say something like

Usrfrm1.Controls(Commcode).value = Usrfrm2.combobox3.value

Hope I'm being clear?
 

JONESY

Board Regular
Joined
Jul 23, 2004
Messages
63
Sorry being thick i usually have several bad days

Usrfrm1.Controls(Usrfrm1.Commcode).value = Usrfrm2.combobox3.value

Sorry !
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,023
Messages
5,834,996
Members
430,331
Latest member
Syed Yasir Hannan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top