CELL |
CELL(info_type [,reference]) |
Returns the text string indicating information about a cell. |
info_type | The text string indicating the type of information to return: "address" = address of the cell "col" = column number of the cell "color" = 1 if cell format as negative font colour "contents" = contents of the cell "filename" = filename and full folder path of the workbook "format" = number format of the cell "parentheses" = 1 if the cell format as parentheses for positive values "prefix" = label prefix of the cell "protect" = 1 if the cell is locked, and 0 if not "row" = row number of the cell "type" = type of the data in the cell "width" = column width of the cell rounded to the nearest integer |
reference | (Optional) The range of cells that you want information about. |
REMARKS |
* This function is only available for backwards compatibility and should not be used. * This is a Volatile function and will change everytime a cell on the worksheet is calculated. * If "info_type" = "color", then the value 1 is returned if the cell format has coloured font that has been applied for negative values. * If "info_type" = "format", then you must recalculate this functions if the cell has a custom format applied afterwards. * If "info_type" = "filename" and the workbook has not been saved, then a blank string is returned. * If "info_type" = "parentheses", then the value 1 is returned if the cell format has parentheses for positive values. * This function will update when the workbook is recalculated by pressing F9. * The information returned is related to the contents, location or formatting of a given cell. * If "reference" is a range of cells, then the upper left cell is used. * If "reference" is left blank then the last cell that was changed in the active workbook is used. * This function will always be single threaded when calling "format" or "address". * This function cannot be called from VBA, Application.WorksheetFunction.Cell does not exist. * For the Microsoft documentation refer to support.microsoft.com * For the Google documentation refer to support.google.com |
|
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top