Forum

Open Workbook in Cl...
 
Notifications
Clear all

Open Workbook in Cloud (OneDrive)

3 Posts
2 Users
0 Reactions
555 Views
(@kevin-newnssmithgmail-com)
Posts: 2
New Member
Topic starter
 

Scenario : A Workbook (eg Data.xlsx) exists in the Cloud (OneDrive) and access is required to read that Workbook via VBA

The problem : Using the VBA Workbook VBA statement  Workbooks.Open(< Workbook location >)  what is the syntax for <Workbook location>

                        For a local folder the syntax would be eg Workbooks.Open("C:FolderData.xlsx) -

                       In the case of Cloud access what is the replacement for C:

 
Posted : 30/05/2022 7:57 pm
(@catalinb)
Posts: 1937
Member Admin
 

Hi Kevin,

try:

Workbooks.Open Filename:="https://1drv.ms/your_link_to_file"

 
Posted : 04/06/2022 5:47 am
(@kevin-newnssmithgmail-com)
Posts: 2
New Member
Topic starter
 

Thanks for your reply Catalin

The syntax you suggested seems OK - I just have to resolve my Credentials problem to execute

 
Posted : 05/06/2022 8:54 pm
Share: