This document discusses essential VBA language elements like declaring variables, working with range objects by referring to cell ranges using quotes or named ranges, and using worksheet functions in VBA. It covers declaring integer, long, and double variables, specifying cell ranges through addresses or names, and calling worksheet functions from VBA code.
This document discusses essential VBA language elements like declaring variables, working with range objects by referring to cell ranges using quotes or named ranges, and using worksheet functions in VBA. It covers declaring integer, long, and double variables, specifying cell ranges through addresses or names, and calling worksheet functions from VBA code.
This document discusses essential VBA language elements like declaring variables, working with range objects by referring to cell ranges using quotes or named ranges, and using worksheet functions in VBA. It covers declaring integer, long, and double variables, specifying cell ranges through addresses or names, and calling worksheet functions from VBA code.
Dim x As Integer, y As Integer, z As Integer Dim First As Long, Last As Double
Chapter 8
Working with Range Objects
When you refer to a Range object, the address is always surrounded by double quotes, like this: Range(A1:C5) Or if the range has a name (created by using FormulasNamed CellsName A Range), you can use an expression like this: Range(PriceList)