Userform (displaying another userform) and output data

cmerrick

Board Regular
Joined
Jun 8, 2017
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a user form (Userform1) that adds a row into a table, one of the options on Userform1 displays a new user form (Userform2) allowing the user to key in some dates.

Now obviously, the dates that have just been keyed in cannot be transferred to the 'new row' in the table because Userform1 has not yet been completed so the 'new row' has not been created.

Is there a way to 'store' the dates that have been keyed onto Userform2 and then recall them into the work sheet once Userform1 has been completed?

Regards
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Re: Help with needed with userform (displaying another userform) and ouput data

Yes, a simple way is to store the date in a public variable. You set up this public variable in a module.

Just create a new module and define all the variables that go between userforms there. Then modify and get the variables in the userform code as needed.

Cheers.
 
Upvote 0

Forum statistics

Threads
1,215,379
Messages
6,124,610
Members
449,174
Latest member
ExcelfromGermany

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
Back
Top