on-internet
← Community

Run Macros in Excel file from a SharePoint site

Stack Overflow ·

I have migrated some Excel files, which contain Macro, in SharePoint. I am trying to get the macro runs based on the files in Excel but I am getting the following error: "run-time error 76: Path not found". When I have the files local, this code used to run perfectly: Sub Proceso_diarioLB() ' PROCESO DIARIO MACRO Application.Run "'LIBRO MACROS LB.xlsm'!PROFLOSTN" Application.Run "'LIBRO MACROS LB.xlsm'!STOFCONDN" Application.Run "'LIBRO MACROS LB.xlsm'!COPIASTOFCONDN" End Sub Sub PROFLOSTN() ' ' PROFLOSTN Macro ' ' ChDir "S:\local\007repctrlbcocoa\DOWNLOADS\data" Workbooks.OpenText Filename:="

Comments

Sign in or sign up to comment and upvote.

No comments yet.