SOLVED

Linking Excel tables in two workbooks (one stored locally and one on OneDrive)

%3CLINGO-SUB%20id%3D%22lingo-sub-1711290%22%20slang%3D%22en-US%22%3ELinking%20Excel%20tables%20in%20two%20workbooks%20(one%20stored%20locally%20and%20one%20on%20OneDrive)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1711290%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20table%20in%20an%20.xlsm%20file%20stored%20locally%2C%20and%20I%20would%20like%20to%20link%20the%20data%20to%20an%20.xlsx%20file%20stored%20on%20OneDrive.%20The%20goal%20is%20to%20have%20the%20tables%20synchronized%2C%20so%20any%20data%20changes%20in%20the%20local%20.xlsm%20file%20would%20be%20automatically%20reflected%20in%20the%20cloud-based%20.xlsx%20file.%20Is%20this%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20The%20VBA%20code%20in%20the%20.xlsm%20seems%20to%20break%20when%20the%20file%20is%20stored%20in%20the%20cloud.%20Hence%2C%20the%20requirement%20for%20the%20file%20to%20be%20stored%20locally.%3C%2FP%3E%3CP%3E2.%20The%20.xlsx%20file%20needs%20to%20be%20in%20the%20cloud%2C%20as%20the%20data%20is%20further%20used%20by%20a%20flow.%20Having%20an%20additional%20.xlsx%20file%20seems%20necessary%2C%20as%20the%20Excel%20Online%20Connector%20in%20Power%20Automate%20does%20not%20recognize%20.xlsm%20files.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1711290%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20for%20web%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1711940%22%20slang%3D%22de-DE%22%3ESubject%3A%20Linking%20Excel%20tables%20in%20two%20workbooks%20(one%20stored%20locally%20and%20one%20on%20OneDrive)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1711940%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F808336%22%20target%3D%22_blank%22%3E%40Asirbu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EIf%20you%20allow%2C%20here%20is%20a%20little%20thought-provoking%20aid%20%2F%20information%20about%20your%20plans.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CH1%20id%3D%22toc-hId-553215399%22%20id%3D%22toc-hId-553215399%22%20id%3D%22toc-hId-553215399%22%20id%3D%22toc-hId-553215399%22%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EDifferences%20between%20using%20a%20workbook%20in%20the%20browser%20and%20in%20Excel%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH1%3E%3CP%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-gb%2Foffice%2Fdifferences-between-using-a-workbook-in-the-browser-and-in-excel-f0dc28ed-b85d-4e1d-be6d-5878005db3b6%3Fui%3Den-us%26amp%3Brs%3Den-gb%26amp%3Bad%3Dgb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-gb%2Foffice%2Fdifferences-between-using-a-workbook-in-the-browser-and-in-excel-f0dc28ed-b85d-4e1d-be6d-5878005db3b6%3Fui%3Den-us%26amp%3Brs%3Den-gb%26amp%3Bad%3Dgb%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EGet%20data%20from%20Excel%20workbook%20files%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fpower-bi%2Fconnect-data%2Fservice-excel-workbook-files%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fpower-bi%2Fconnect-data%2Fservice-excel-workbook-files%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20be%20happy%20to%20know%20if%20I%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1713768%22%20slang%3D%22en-US%22%3EBetreff%3A%20Linking%20Excel%20tables%20in%20two%20workbooks%20(one%20stored%20locally%20and%20one%20on%20OneDrive)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1713768%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20so%20much%20for%20sharing%20these%20articles%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B!%20Saving%20it%20as%20an%20.xlsb%20did%20the%20trick.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20able%20to%20use%20it%20in%20Power%20Automate%20without%20having%20to%20go%20through%20the%20pain%20of%20creating%20an%20additional%20.xlsx%20file%2C%20and%20figure%20out%20how%20to%20link%20the%20data%20between%20the%20two.%20Much%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi everyone, 

 

I have a table in an .xlsm file stored locally, and I would like to link the data to an .xlsx file stored on OneDrive. The goal is to have the tables synchronized, so any data changes in the local .xlsm file would be automatically reflected in the cloud-based .xlsx file. Is this possible?

 

1. The VBA code in the .xlsm seems to break when the file is stored in the cloud. Hence, the requirement for the file to be stored locally.

2. The .xlsx file needs to be in the cloud, as the data is further used by a flow. Having an additional .xlsx file seems necessary, as the Excel Online Connector in Power Automate does not recognize .xlsm files.

 

Thank you!

3 Replies
Highlighted
Best Response confirmed by Asirbu (New Contributor)
Solution

@Asirbu 

If you allow, here is a little thought-provoking aid / information about your plans.

Differences between using a workbook in the browser and in Excel

https://support.microsoft.com/en-gb/office/differences-between-using-a-workbook-in-the-browser-and-i...

 

Get data from Excel workbook files

https://docs.microsoft.com/en-gb/power-bi/connect-data/service-excel-workbook-files

 

 

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

Highlighted

Thank you so much for sharing these articles @Nikolino ! Saving it as an .xlsb did the trick. 

I was able to use it in Power Automate without having to go through the pain of creating an additional .xlsx file, and figure out how to link the data between the two. Much appreciated!

Highlighted
Your welcome.
I was pleased to be able to help you with my humble knowledge.

Nikolino
I know I don't know anything (Socrates)