Good day,
Will like to use these 2 codes in the work sheet. It gives ambigous error in the 2nd code 1st line - Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Kindly suggest what to write in tht line or how to use these 2 codes together.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'another method is to have it show if a cell that is formatted as a date is selected...see below
If Target.NumberFormat = "m/d/yy;@" Then
CalendarFrm.Show
End If
'another method is using Select Case...see below
Select Case Target.NumberFormat
Case Is = "m/d/yy", "m/d/yyyy", "m/d/yy", "mm/dd/yy", "yyyy-mmm-dd", "dd-mmm-yy"
CalendarFrm.Show
'Case Else
' MsgBox "Not a valid date format!"
End Select
End Sub
......................................................................................................................
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Me.ScrollArea = "A1:AX252"
End Sub
Thanks in advance
whitesapphire24
Bookmarks