Sharepoint Online and Workbook.Open() doesnt work

pasjauo

New Member
Joined
May 1, 2017
Messages
49
Hey guys

We have recently switched to sharepoint online on the job. This has really messed up some of my excel work.

I have especially two files which are now corrupted.

One is the input file, and the other one is the data file which contains all data. The input file has VBA which opens the data-file and inputs all the data from a userform. Pretty nifty, when we have many people working on the file at the same time.

The problem is that now my links are broken, and i can't seem to find the right path to direct to.

If i "share" the data file it looks like this: https://XXX.sharepoint.com/:x:/r/sites/proj_XXX/Delte dokumenter/TEST/TEST.xlsm?d=XXX (all the XXX for security purposes).

If i open the link in a browser, Excel online opens. So it seems i need to convert the link to the actual file.

Does anyone have any experience with this?

Best regards from Denmark :)
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If you open both files in Excel desktop you should be able to get their path from the .Path property.
 
Upvote 0
Okay, I have now dug into the whole sharepoint online thing.

And I didn't even realise that I can probably just alter the data file, so that multiple people can edit the file at the same time.

Is there any suggestions on doing some sort of easy input in excel online? I would like to leave as much information on drop downs, because we have seen really lackluster data quality in the past.
 
Upvote 0
Data Validation should work. ActiveX controls and form controls don't.

Yes I can see that now. The problem was I just transferred the xlsm files to sharepoint, where the excel online opens as protected. I need to save it without macro enabled (xlsx) to get it without protection.
 
Upvote 0
Indeed, no VBA in Excel on-line. But you can set a Sharepoint library to have people open the files in Excel desktop if I recall correctly.
 
Upvote 0

Forum statistics

Threads
1,213,483
Messages
6,113,919
Members
448,533
Latest member
thietbibeboiwasaco

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top