Can you have a USERFORM open at the beginning of Macro

Darth_Popsicle

New Member
Joined
Apr 23, 2017
Messages
7
I have a Macro creating an entire new sheet / form in a new tab from the click of a command button. I've built a user form and I've been trying to add VBA code so the userform will pop up at the beginning of the macro for the individual to input the data needed. The userform is titled ISO_DATA.
A. Can this be done?
B. Can you share the code ?
 
Yes I am struggling on this one. When I step through using F8 I get
Runtime error '424':
Object required

I googled this and it mentions to us the _initialize in the userform code but that did not work either.
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Runtime error '424': Object required

I googled this and it mentions to us the _initialize in the userform code but that did not work either.
Nonsense, it could be anything. Are you able to share your workbook on a public platform (Dropbox / WeTransfer) so I can look into your issue?
 
Upvote 0
BW re-reading above you mention "and all six (assuming they are) text boxes" One item is a List box the last one, does that make a difference on what I am trying to do here?

I am not able to share unfortunately.
 
Upvote 0
It should not make a difference.
I am not able to share unfortunately.
If that is because of sensitive data you might consider to upload a sample workbook, although with all your code in it. WeTransfer is free of charge, the link to the uploaded file can be posted in this thread.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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