I am not experienced in excel vba. I have an excel workbook with more than 1 sheet. Each sheet should refresh on clicking a button within the sheet. Providing here the code used with just 2 sheets as an example and have removed all sensitive data from the code. I need help with the following:
a. if I give this document to someone else they are prompted for a database name and password? Since there is an EXEC function used I am forced to use the Read-Write authentication which I cannot distribute to every user. How can I embed the connection string here so other users are not prompted for database login details.
I am not sure how can I provide an Excel file as an example without revealing any sensitive data. However the whole VBA code is copied here after deleting sensitive data.
Please Login or Register to view this content.
Bookmarks