Hi All. I am doing some automation for users of an IT dept created file. The IT file is a protected workbook with protected modules.
Current process: The user opens the IT xlsm file, copies / Pastes by value the updated data (from USER file) and then saves the IT file (located on a sharepoint). The IT file also has a macro button to "Upload" the new raw data to a server. So, 2 things are done, the IT file is updated and saved, and Data is push to a server. Regardless if you hit the macro button to upload the data to the server or not, the IT Workbook_BeforeSave has a MsgBox("Do you want to upload data", vbYesNo, strTitle), you need to click yes or no.
I am automating this from the USER file. From a macro button in the USER file, I
1) open the IT (sharepoint) file
2) auto copy paste special data from USER to IT
3) save IT file
4) I still need to upload the data in the file to their server....
So I can either do a or b...
a) On Save, the IT file Workbook_BeforeSave runs asking if you want to upload data Yes / No. How can I accept the "yes" with code from the USER file...
or
b) run IT upload macro "Public Sub btnUpload_Click()" from USER and bypass the BeforeSave Msgbox
Thanks
Steve
Bookmarks