Excel VBA
Sub HelloWorld() MsgBox “Hello VBA World!” Range(“A1”).Value = “Message shown” End Sub Expanding selection– //The following code will move the selection A1:C3 to 1 column and 1 row. Range(“A1:C3”).Offset(1, 1).Select //Resize will keep the active cell and expand the selection as defined. Range(“A1”).Resize(2, 2).Select This code will navigate to another cell based on currently active…