spreadsheetSetActiveCell

説明

指定したセルをアクティブに設定します。

戻り値

なし 

履歴

  • ColdFusion(2025 リリース):関数が追加されました。

シンタックス

spreadsheetSetActiveCell(spreadsheetObject,row,column)
spreadsheetSetActiveCell(spreadsheetObject,row,column)
spreadsheetSetActiveCell(spreadsheetObject,row,column)

パラメーター

名前

 

 

必須

 

 

Type

 

 

説明

 

 

spreadSheetObject

 

 

はい

 

 

ExcelInfo 

 

 

セルをアクティブに設定する Excel スプレッドシートオブジェクトです。

 

 

row

 

 

はい

 

 

Integer 

 

 

セルの行番号です。

 

 

column

 

 

はい

 

 

Integer 

 

 

セルの列番号です。

 

 

<cfquery name=&quot;art&quot; datasource=&quot;cfartgallery&quot;>
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;;
// スプレッドシートオブジェクトを作成します
theSheet=spreadsheetNew(&quot;SampleData&quot;)
// クエリから行を追加します
spreadsheetAddRows(theSheet,art)
// アクティブセル 1,6 を設定します
spreadsheetSetActiveCell(theSheet,10,6)
spreadsheetWrite(theSheet,theFile,&quot;yes&quot;)
infoActiveCell=spreadsheetGetActiveCell(theSheet)
writeDump(infoActiveCell)
</cfscript>
<cfquery name=&quot;art&quot; datasource=&quot;cfartgallery&quot;> SELECT * FROM ART </cfquery> <cfscript> theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;; // スプレッドシートオブジェクトを作成します theSheet=spreadsheetNew(&quot;SampleData&quot;) // クエリから行を追加します spreadsheetAddRows(theSheet,art) // アクティブセル 1,6 を設定します spreadsheetSetActiveCell(theSheet,10,6) spreadsheetWrite(theSheet,theFile,&quot;yes&quot;) infoActiveCell=spreadsheetGetActiveCell(theSheet) writeDump(infoActiveCell) </cfscript>
<cfquery name=&quot;art&quot; datasource=&quot;cfartgallery&quot;>
    SELECT * FROM ART
</cfquery>
<cfscript>
    theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art.xls&quot;;
    // スプレッドシートオブジェクトを作成します
    theSheet=spreadsheetNew(&quot;SampleData&quot;)
    // クエリから行を追加します
    spreadsheetAddRows(theSheet,art)
    // アクティブセル 1,6 を設定します
    spreadsheetSetActiveCell(theSheet,10,6)
    spreadsheetWrite(theSheet,theFile,&quot;yes&quot;)
    infoActiveCell=spreadsheetGetActiveCell(theSheet)
    writeDump(infoActiveCell)
</cfscript>

ヘルプをすばやく簡単に入手

新規ユーザーの場合

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談