Wednesday, July 6, 2022

VBA Excel type "hello" in column 1 and row 1 "Microsoft Excel Objects"

 Sub ActivateSheet()

Worksheets("Sheet2").Range("A1").Value = "Hello"

or

Worksheets(1).Range("A1").Value = "Hello"

or

Sheet1.Range("A1").Value = "Hello"

End Sub

No comments:

Post a Comment