spreadsheetGetHyperlinks

説明

spreadsheetSetCellHyperlink 関数を使用して作成された、スプレッドシート内のすべてのハイパーリンクを取得します。

戻り値

すべてのハイパーリンクのアドレス、列、行、およびタイプを含む構造体の配列。 

履歴

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

シンタックス

spreadsheetGetHyperlinks(spreadsheetObject)

パラメーター

名前

 

 

必須

 

 

Type

 

 

説明

 

 

spreadSheetObject

 

 

はい

 

 

ExcelInfo 

 

 

ハイパーリンクを取得する Excel スプレッドシートオブジェクト。

 

<cfquery name=&quot;art&quot; datasource=&quot;cfartgallery&quot;>
    SELECT * FROM ART
</cfquery>
<cfscript>
    theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & &quot;art-hyperlinks.xls&quot;;
    // スプレッドシートオブジェクトを作成します
    theSheet=spreadsheetNew(&quot;SampleData&quot;)
    // クエリから行を追加します
    spreadsheetAddRows(theSheet,art)
    // 3 つのハイパーリンクを追加します
    // ハイパーリンク構造体
    hStruct1={
        row:3,
        column:3,
        address: &quot;https://www.adobe.com&quot;,
        type:&quot;URL&quot;
    }
    // セル 3,3 にハイパーリンクを設定します
    spreadsheetSetCellHyperlink(theSheet,hStruct1)
    // 2 番目のハイパーリンク
    hStruct2={
        row:4,
        column:3,
        address: &quot;https://www.google.com&quot;,
        type:&quot;URL&quot;
    }
    // セル 4,3 にハイパーリンクを設定します
    spreadsheetSetCellHyperlink(theSheet,hStruct2)
    // 3 番目のハイパーリンク
    hStruct3={
        row:5,
        column:3,
        address: &quot;https://www.apple.com&quot;,
        type:&quot;URL&quot;
    }
    // セル 5,3 にハイパーリンクを設定します
    spreadsheetSetCellHyperlink(theSheet,hStruct3)
    // スプレッドシートに書き込みます
    spreadsheetWrite(theSheet,theFile,&quot;yes&quot;)
    // すべてのハイパーリンクを取得します
    listOfHyperlinks=spreadsheetGetHyperlinks(theSheet)
    writeDump(listOfHyperlinks)
</cfscript>

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

新規ユーザーの場合