I currently have an excel worksheet set up to call on a calendar form everytime the user clicks cell B2 as follows:
This code is in the "ThisWorkbook"
Private Sub Workbook_Open()
Sheets("INPUT").OnDoubleClick = "Input_Form"
End Sub
This is the module
Sub Input_Form()
Dim rowval As String
Dim colval As String
colval = Selection.Column
rowval = Selection.Row
If colval = 2 And rowval = 2 Then
frmCalendar.Show
End If
End Sub
I would like to change from using just 1 cell activating the form (by doubleclicking cell B2) to a range of cells that whenever one of the single cells in that particular range (in my case j4:k500) is double clicked the form appears. Any thoughts?
This code is in the "ThisWorkbook"
Private Sub Workbook_Open()
Sheets("INPUT").OnDoubleClick = "Input_Form"
End Sub
This is the module
Sub Input_Form()
Dim rowval As String
Dim colval As String
colval = Selection.Column
rowval = Selection.Row
If colval = 2 And rowval = 2 Then
frmCalendar.Show
End If
End Sub
I would like to change from using just 1 cell activating the form (by doubleclicking cell B2) to a range of cells that whenever one of the single cells in that particular range (in my case j4:k500) is double clicked the form appears. Any thoughts?