共同作業サイトから Excel ワークシートをプライベート テーブルとしてインポートできないTeams/Sharepoint/Collab サイトから Excel ワークシートをインポートしていますが、「プライベート」設定が機能しません。
dt = Open ("https://collab.company.com/:x:/r/sites/Folder/Shared%20Documents/General/Title%of%Excel.xlsm?download=1",
Worksheets( "Sheet1" ),
Use for all sheets( 1 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 0 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
), Private
);When I replace the filepath with a local filepath, the table is Private, but when I'm using the filepath for the collab site, it doesn't read the Private. I've tried putting the Output Table("Name of Output Table") command in without the Private to see if the code is even reading anything after the filepath and that setting isn't recognized. Obviously, the Worksheet setting is recognized because it does return that specific worksheet, but I don't know why it isn't reading private or output table. It's also not because this is a .xlsm vs .xlsx file.
データアクセス大量カスタマイズウィンドウズRe: コラボレーション サイトから Excel ワークシートをプライベート テーブルとしてインポートできないさて、回避策を見つけました。 上記の方法が具体的になぜ無効になるのかはまだわかりませんプライベート設定しますが、以下に示すようにフォルダー パスを入力することで、[データ ファイルを開く] ウィンドウ内でコラボ サイトにアクセスできます。
https://collab.company.com/sites/Folder/Shared Documents/General/
この方法でファイルを開き、そのテーブルの JSL スクリプトを調べました。
Open(
"\\collab.company.com@SSL\DavWWWRoot\sites\Folder\Shared Documents\General\Name of Document.xlsm",
Worksheets( "In-Process Config Table" ),
Use for all sheets( 1 ),
Concatenate Worksheets( 0 ),
Create Concatenation Column( 0 ),
Worksheet Settings(
1,
Has Column Headers( 1 ),
Number of Rows in Headers( 1 ),
Headers Start on Row( 1 ),
Data Starts on Row( 2 ),
Data Starts on Column( 1 ),
Data Ends on Row( 0 ),
Data Ends on Column( 0 ),
Replicated Spanned Rows( 1 ),
Replicated Spanned Headers( 0 ),
Suppress Hidden Rows( 1 ),
Suppress Hidden Columns( 1 ),
Suppress Empty Columns( 1 ),
Treat as Hierarchy( 0 ),
Multiple Series Stack( 0 ),
Import Cell Colors( 0 ),
Limit Column Detect( 0 ),
Column Separator String( "-" )
)
)
ファイルパスが異なります。 よくわかりません@SSL\DavWWWルート\意味しますが、テーブルをプライベートに設定すると機能します。 経路を作成するために Web ページが開くのを待つ必要はありません。 奇妙な問題のように感じるので、なぜ上記の問題が発生するのか疑問に思っていますが、私が発見したこの方法は実際には優れています.