Using An Array from one userform to another in VBA?

Z_Daddy

New Member
Joined
Sep 11, 2003
Messages
2
Hi, I'm having a problem with a program I am working on.
Basically, I have one array that is defined and loads some data into it from the excel spreadsheet. I will be using it on 2 different userforms. One userform calls the other. But, when in the 2nd userform, my program does not recognize the array. I need the array at the module level, or at least I think so from what I have been reading. But, any help from you guys would be great!
Thanks!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Actually all, NM. I figured out a way around this. I just userform.hide my form with the array, and pass all needed data via functions in the first form to the 2nd.
Thanks!

~Z_Daddy~
 
Upvote 0

Forum statistics

Threads
1,216,813
Messages
6,132,845
Members
449,761
Latest member
AUSSW

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