Diving_Dan
Board Regular
- Joined
- Oct 20, 2019
- Messages
- 161
Hi,
I've used the following code in another workbook to open a calander pop up when I choose a particular cell and then once i've selected the date I want to select another cell.
I'm trying to use the same code on another workbook however the cell I want to use to start the pop up is merged with a few others, H2-J2.
What do I have to do to the code to select the merged cells?
Thanks in advance
I've used the following code in another workbook to open a calander pop up when I choose a particular cell and then once i've selected the date I want to select another cell.
I'm trying to use the same code on another workbook however the cell I want to use to start the pop up is merged with a few others, H2-J2.
What do I have to do to the code to select the merged cells?
Thanks in advance
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If (Target.CountLarge = 1) Then
If Not Intersect(Target, Range("H2")) Is Nothing Then
frmCalendar.Show
Range("A2").Select
End If
End If
End Sub