Читать книгу Excel 2019 Power Programming with VBA - Michael Alexander, Dick Kusleika - Страница 110
Understanding methods
ОглавлениеMethods are the actions that can be performed with an object. It helps to think of methods as verbs. You can paint your house, so in VBA, that translates to something like house.paint.
A simple example of an Excel method is the Select method of the Range object.
Range("A1").Select
Another is the Copy method of the Range object.
Range("A1").Copy
Some methods have arguments that can dictate how they are applied. For instance, the Paste method can be used more effectively by explicitly defining the Destination argument.
ActiveSheet.Paste Destination:=Range("B1")