

The syntax for VBA cells function in excel is as follows:Ĭells argument will consider two numeric arguments to represent row & column, where the first one is for representing row number & and the second or last one referring to as column number. This cells property is used to specify a single cell or all cells on the worksheet, where it returns a single cell in the Cells collection. The cell is a property of range in excel sheet, which is a characteristic, where it is used to describe a range Cells only returns one cell which is used to represent cells within a range of the worksheet. we canĭifference between range & cells in VBA is Cells usually refer to a single cell at a time, while Range references a group of cells.

it can be written as Cells (6, 5) for referring a cell “F5” where 6 is the column number & 5 is the row number Cells takes row & column number as an argument, cells are located within the range object With the help of cells in VBA, we can perform three important tasks, i.e.

It is used for referencing a cell object e.g. (Note: it can’t refer to multiple cells like Range (“A2:E7”) Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.Įxcel VBA allows you to refer to cells in many different ways, cells refers to single cells only.
