A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi,
Thanks for posting in our community.
Generally, the username and password will be asked when the workbook is opened on a new device as the file sharing won't transfer the login cache folder. And kindly check if the Privacy levels setting can help anything for your scenario.
For reference:
Manage data source settings and permissions (Power Query) (microsoft.com)
Set privacy levels (Power Query) (microsoft.com)
Authentication with a data source - Power Query | Microsoft Docs
If the privacy setting can't meet your scenario, we may be sorry to convey that the currently there has no other out-of-box way to eliminate the feature limitation for Excel Data Connection to store the credential when moving the workbooks. However, we'd like to suggest you give it another try in Microsoft Q&A Community where engineers there focus more on developed and customized feature design with Office apps. You may get some useful ideas there.
Meanwhile, we will keep this thread open and see if any Excel MVP or community member experienced at VBA can share any other possible workarounds for your scenario. Appreciate all the understanding and patience!!
Best Regards,
Mia