Whatever message this page gives is out now! Go check it out!

spreadsheetIscolumnHidden

Last update:
May 18, 2026

Description

Checks if the specified column in a sheet is hidden.

Returns

True if the column is hidden. False, otherwise.

History

  • ColdFusion (2025 release): Added the function.

Syntax

spreadsheetIsRowHidden(spreadSheetObject,column)

Parameters

Name
Required
Type
Description
spreadSheetObject
Yes
ExcelInfo
The Excel spreadsheet object to check whether the column is hidden.
column
Yes
Integer
The column to check if it's hidden.

Example

<cfquery name="art" datasource="cfartgallery">
    SELECT * FROM ART
</cfquery>
<cfscript>
    theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-col-hidden.xls";
    // create a spreadsheet object
    theSheet=spreadsheetNew("SampleData")
    // add rows from the table to the spreadsheet
    spreadsheetAddRows(theSheet,art)
    // hide column 6 in the spreadsheet
    spreadsheetSetColumnHidden(theSheet,6,"TRUE")
    // write the spreadsheet
    spreadsheetWrite(theSheet,theFile,"yes")
    // check if column is hidden
    isHidden=spreadsheetIsColumnHidden(theSheet,6)
    writeOutput(isHidden) // YES
</cfscript>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page