VBA issues with opening/finding source code

noisepoet

Board Regular
Joined
Oct 19, 2006
Messages
82
I have entered the code for a user form calendar to appear and enter the date into a cell. The code came from this website: http://www.fontstuff.com/vba/vbatut07.htm

I can get the calendar to appear from the user form "view code" screen (pressing F5 while on this screen). However, when I follow the instructions and enter the code into the module screen -- Sub OpenCalendar() fmr.Calendar.Show End Sub -- I get "Run time error 424: object required."

When I choose to debug, the frmCalendar.Show is highlited. I'm assuming this means that the module code is unable to recognize the user form code. I've double and triple checked the code, and there are no problems there. Could something else be wrong?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Is it a typo that you have a . between frm and Calendar?
 
Upvote 0

Forum statistics

Threads
1,214,837
Messages
6,121,883
Members
449,057
Latest member
Moo4247

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