VBA MOD01 -- Writting Cells
Different Ways to Write Cells
Public Sub ReferToCells()
Cells.Clear
'Range("A1").Value = "1st"
'Cells(1, 2) = "2nd"
Range("A1:D1").Value = "1st"
Range("A2:C2,E2:G2").Value = "2nd"
Range("A3", "C3").Value = "3rd"
Range("A4,C4").Value = "4rth"
Range("A5", "C5") = "5th"
Range("A" & 6, "C" & 6).Value = "6th"
Range("A4:C7").Cells(4, 2).Value = "7th"
Cells(1, 1).Offset(7, 2) = "8th"
End Sub
hello
ReplyDelete