How to make Excel VBA Automation Execute for All End Users -


I have written the following code so that when an Excel spreadsheet is closed it will update its name with current date and time :

  Close the personal sub workbook first (cancel as a boolean) if this workbook. Name = "name_lama has been opened" & amp; Format (date, "MM-DD-YYYY") & amp; _ "_" & Amp; Format (Time, "H.M.M.M.") & amp; ".xls" else otherwise this workbook. SaveAs file name: = "\\ C: \ ... name opened_" & amp; _ Format (Date, "MM-DD-YYYY") & amp; "_" & Amp; Format (Time, "H.M.M.M.") & amp; ".xls" FName = Sheets ("name"). Range ("D1"). Delete the text FName end if the end sub-private sub workbook is open () range ("A1"). Additionally, the code is located within VBAProject (file name), MS Excel Object - under this workbook. 

This code works perfectly for me or for workstation; However, it does not execute for all those who open it in their worst case. Will anyone know that whenever the spreadsheet is opened and closed from any computer, and not only will it run my code?

Thanks,

DFM

It is possible that Excel's security settings are not permitting other people's computers to run scripts that can be interpreted as dangerous malware. Perhaps you had changed your security settings very long ago to see if you forgot about whether you can modify the security settings of another user, whether this workbook will execute the macro at the close.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -