Hi Hans and all
I have the following marco, Is there a better way to simplifies it? What is the last line Set rg = Nothing? Do I need to put
also Set rg2 = Nothing.
Sub InputRange()
Dim rg As Range
Dim rg2 As Range
Set rg = ActiveSheet.Range(“A2”)
Set rg2 = ActiveSheet.Range(“A3”)
rg.Value = 500
rg2.Value2 = 5000
rg.Font.ColorIndex = 3
rg2.Font.Bold = True
Set rg = Nothing
End Sub