User Form not loading

Mattyads2011

New Member
Joined
Jun 16, 2011
Messages
23
Hi Guys.

I have assigned a macro to a drawing so that a userform I have created appears.

It used to work fine but I have since added some more labels and text boxes to the form and now it wont appear when i click on the drawing.

I have tried rewriting the macro but to no avail.

This is the first time I have used a form so I may have missed somethign really simple. This is what the coding looks like

Sub AutoShape92_Click()
TalentForm.Show
End Sub

Can any point out what I am doing wrong please?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi Andrew.

Yes, when I click I get a runtime error 424 Object Required.

When I hit Debug it highlights the 2nd row of the code I used above.
 
Upvote 0
Maybe there is an error in your UserForm module. See if checking 'Break in Class Module' under Tools|Options|General tab in the Visual Basic editor gets you a bit farther.
 
Upvote 0
Ok might be getting somewhere now, I didnt mention before, because I had forgotten myself, that I have used an existing userform that a friend of mine had already designed and assigned some coding to (for some strange reason i seem to learn best by playing about with codes/formula that other people have done)

The Debug is now highlighting some of the coding which was meant to sort the data once the form had been filled in by a user.

If this is what is stopping it from loading I will have to revisit but surely this shouldnt stop the form from loading in the 1st place?

Thank you by the way Andrew, i appreciate your help with this.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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