graemeal
Active Member
- Joined
- May 17, 2007
- Messages
- 316
- Platform
- Windows
How do you add a comment within a code on a post which turns it into blue text. Such as the '-- or whatever range you want.
Thanks
XP XL2007
Thanks
Code:
If CheckedRange Is Nothing Then
Set CheckedRange = Me.Range("A1:A2") '-- or whatever range you want
CellsCount = CheckedRange.Cells.Count
ReDim OldValue(1 To CellsCount)
For i = 1 To CellsCount
OldValue(i) = CheckedRange(i)
Next
End If
End Sub
XP XL2007