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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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