Mega Code Archive

 
Categories / VisualBasic Script / Excel
 

Change cell A1 and move to cell A2 and change it

Sub MyMacro()          Range("A1").Value = "This is A1"          Range("A2").Select          ActiveCell.Value = "This is A2"      End Sub