Excel Macro Enabled Spreadsheets or Excel Binary Worksheets

Chris Waller

Board Regular
Joined
Jan 18, 2009
Messages
183
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I work for a big organisation that is moving from using a folder structure to save files to using SharePoint. I believe Excel macros won't work in SharePoint, however, if we open these Excel Spreadsheets with the desktop app, the macros can be run. The question I have is, is there a way to identify a spreadsheet that will work in the desktop app ie the code is self contained? Is there a way to identify spreadsheets that will require some remediation because the VBA is referring to something outside the current spreadsheet? Perhaps you may know of a different way of identifying these problems. TIA
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I believe Excel macros won't work in SharePoint, however, if we open these Excel Spreadsheets with the desktop app, the macros can be run
Two points here:
  1. VBA macros absolutely work for files stored in SharePoint, however, this brings us to point 2.
  2. There's a difference between where files are stored and how they are opened. At the business I work at, all common files are stored in a SharePoint directory. Now, because these files are technically online, you have the option to open them either via the web app (in a web browser) or with the excel desktop app. If you open the SharePoint file with the desktop app, you have the full functionality of excel (including macros). You are absolutely correct that if you open the file with the web app macros will not work - but this is not because the file is stored in SharePoint; it is because of the tool you are using to edit the file.
The best way to differentiate between the files with and without VBA is to be very careful about file extensions: *.xlsx files will not have any VBA, while *.xlsm files would. For this reason I might suggest avoiding using *.xlsb, because that extension allows it to be ambiguous whether the file contains any VBA or not.

If you're in the process of transitioning to SharePoint, then I'm afraid you'll have to just go file by file and examine the code to see what needs to be changed. If you are interacting with other excel files and need to do that in SharePoint too, you might want to refer to the following thread:
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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