adding dates via a calendar???

baggers719

Board Regular
Joined
Sep 18, 2009
Messages
104
Hi all,

I'm trying to limit the information people can put into my format and therefore to ensure they put in a the correct date etc i'm wondering if it is possible to have a calendar pop up to click on the date for a particular cell??

is this an easy thing to do??? im open to any suggestions also!

thanks,

Sean
 
It is actually the whole user form that should be called frmCalendar, not the calendar itself.

In design mode click the top bar of the user form - what name is displayed in the Properties window?
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
looks to me like the form is called "frmCalendar"

when i click on the calendar itself this is named "Calendar1"
 
Upvote 0
What is the error message and what line of code is highlighted when you click the Debug button?
 
Upvote 0
error message 404...

and the text frmCalendar.Show is highlighted yellow from the text you gave me.

when i hover the mouse cursor over it says "frmCalendar = Empty"

I have created frmCalendar in a separate xls worksheet as inthe instructions called PERSONAL.XLSB. im not sure what othr information will help?

i right clicked on the worksheet in the file I wanted to use as you stated and pasted the code on that sheet? i think i did this right?
 
Upvote 0
Try this

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 2 Then Application.Run "personal.xlsb!Open_Calendar"
End Sub
This assumes that you added the Open_Calendar code from the tutorial.
 
Upvote 0
great!! seems to work.. I just had to remove the underscore you put in tyhe coding...

thank you so much for your help!
 
Upvote 0

Forum statistics

Threads
1,215,537
Messages
6,125,390
Members
449,222
Latest member
taner zz

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