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 ?
 

Darth_Popsicle

New Member
Joined
Apr 23, 2017
Messages
7
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.
 

Some videos you may like

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

GWteB

Well-known Member
Joined
Sep 10, 2010
Messages
1,295
Office Version
  1. 2013
Platform
  1. Windows
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?
 

Darth_Popsicle

New Member
Joined
Apr 23, 2017
Messages
7
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.
 

GWteB

Well-known Member
Joined
Sep 10, 2010
Messages
1,295
Office Version
  1. 2013
Platform
  1. Windows
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,589
Messages
5,625,671
Members
416,125
Latest member
NeedExcelHelp2021

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