Hi,
I am wanting to simulate double clicking in a selected range as I have an 'almost complete macro' that only seems to work when I have double clicked in the specific cells.
I have come up with this code but it does not seem to work compared to when i physically double click each cell. Can somebody please help me fix this up so that it will simulate a double click in the selected range?
Cheers,
Milos
I am wanting to simulate double clicking in a selected range as I have an 'almost complete macro' that only seems to work when I have double clicked in the specific cells.
I have come up with this code but it does not seem to work compared to when i physically double click each cell. Can somebody please help me fix this up so that it will simulate a double click in the selected range?
Code:
Sub Double_Click_Selected_Cells()
Dim rng As Range, cell As Range
Set rng = Selection
For Each cell In rng
ActiveSheet.Activate
Application.DoubleClick
Next cell
End Sub
Cheers,
Milos