I want to define lots of ranges that are comprised of every 5th column (starting at Col D through to Col AV) from Row 9 to Row 200 for each one.
Is there an easy way to do this?
I want this so I can set up a "tick" column along the lines of:
This all looks very inelegant - is there a neater way??
thanks in advance
Is there an easy way to do this?
I want this so I can set up a "tick" column along the lines of:
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'This macro inserts a "tick" in a cell that is double clicked
'The tick is the letter "a" in the Martlett format group
'Range where this takes place is union of ranges "name ranges here" etc
Dim tickRange As Range
Set tickRange = Union([Range1], [Range2], [Range2])
If Not Intersect(Target, tickRange) Is Nothing Then
Cancel = True 'Prevent going into Edit Mode
Target.Font.Name = "Marlett"
If Target = vbNullString Then
Target = "a"
Else
Target = vbNullString
End If
End If
End Sub
This all looks very inelegant - is there a neater way??
thanks in advance