Strange Behavior Excel 2007

cstimart

Well-known Member
Joined
Feb 25, 2010
Messages
1,180
When I am creating UserForm1, the properties window data is present...I add a Label, ListBox and Command button and close the form.

If I click on Module1 in the Project Window, the properties window reflects the data, however, if I select UserForm1 in the Project Window, the properties do not appear. I can open the form, add code, etc...but when I run my Macro in Module1, I get an error that tells me there's no form?

I closed and re-opened Excel with the same results.

Is there a setting or something that's messin' this up? :confused:
 

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.
And how about showing us all the macro listing?
 
Upvote 0
If I click on Module1 in the Project Window, the properties window reflects the data, however, if I select UserForm1 in the Project Window, the properties do not appear.
The properties won't show if the userform isn't open in the design frame. You said you'd closed it. Double-click its name in the VBA Project Explorer window to re-open it and if the Properties window is visible, the userform's properties will appear in it.

Why your macro gives an error when showing your userform is another question though, and we'd need to see the code as Glenn says. Have you renamed your userform or is it still called UserForm1?
 
Last edited:
Upvote 0
I see the the properties do appear/disappear, unlike a module.

After further review, there was a portion of code that I had re-used that did reference another form that was not present. :banghead:

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,758
Members
452,940
Latest member
rootytrip

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