Object Required error when Calendar added

Donal28

Well-known Member
Joined
Apr 23, 2010
Messages
527
Hi All

I have just added a calendar to my my userform called Calendar1 but when I now launch the userform using a button I get the error "Object Required". The code behind the button is

Sub Open_B1_29000()
B1_29000.Show
End Sub

Any help on this would be very much appreciated

Regards
Donal
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Do you actually get an error on that line, or on some line in your UserForm module? Is B1_29000 the name of a UserForm? To see if the error is in the UserForm module check 'Break in Class Module' on the General tab of the Tools|Options dialog.
 
Upvote 0
Thanks for the reply Andrew I did as you said and see that I had changed the a textbox(which I was previously using for the date) to the Calendar1 but was still referencing the textbox somewhere else in the program which was giving the error. I previously had

date.Value = ""

but changed this

Calendar1.Value = ""

which fixed the problem. Thanks for your help
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,284
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