Importazione del foglio di lavoro Excel dal sito Collab come tabella privata non funzionanteSto importando un foglio di lavoro Excel da un sito Teams/Sharepoint/Collab e l'impostazione "Privato" non funziona.
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.
Accesso ai datiPersonalizzazione di massaFinestreRe: Importa foglio di lavoro Excel dal sito di collaborazione come tabella privata non funzionanteOk, quindi ho trovato una soluzione alternativa. Non so ancora perché in particolare il metodo sopra invalida il Privato Impostazione, ma puoi accedere ai siti di collaborazione all'interno della finestra Apri file di dati inserendo il percorso della cartella come mostrato di seguito:
https://collab.company.com/sites/Folder/Shared Documents/General/
Ho aperto il file in questo modo e poi ho esaminato lo script JSL per quella tabella.
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( "-" )
)
)
Il percorso del file è diverso. Non sono completamente sicuro di cosa @SSL\DavWWWRoot\ significa, ma quando imposti la tabella su privato, funziona. Non è necessario attendere l'apertura di una pagina Web per creare un percorso. Mi chiedo ancora perché si verifica il problema di cui sopra perché sembra un problema strano, ma questo metodo che ho scoperto è in realtà migliore.