• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VBA Help

Nabeel

Member
hello
in attached file there is the VBA of popup calendar.,write click on cell select the insert date calendar shows..i want when i click on A1 cell or any other specific cell the calendar shows on click..
 

Attachments

  • my calendar.xlsm
    20.5 KB · Views: 3
Hi Nabeel,

Try this code in the right sheet :
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Specific_Cells As Range
Set Specific_Cells = Range("A1:A10") 'adapt to you case
If Not Application.Intersect(Target, Specific_Cells) Is Nothing Then frmcalendar.Show
End Sub
 
Hi Nabeel,

Try this code in the right sheet :
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim Specific_Cells As Range
Set Specific_Cells = Range("A1:A10") 'adapt to you case
If Not Application.Intersect(Target, Specific_Cells) Is Nothing Then frmcalendar.Show
End Sub
thnx its working
 
Back
Top