Good day all
I have a workbook which will be distributed to a number of organizations. This workbook will then be used to feed another workbook in a different organization that contains the same VBA code. This scenario will be duplicated many times, with several hundred organizations reporting to their immediate sponsor, until a single comprehensive report is issued. This process will happen many times with each report that is issued by a given organization being built on the last which they submitted to their sponsor.
The approval to proceed to the next reporting period will be provided by an approval file sent by the ultimate authority to each of the contributors to the report. This approval file will contain code to archive the approved report, and set up the system for the next reporting period.
Now I’m just too long in the tooth to believe that changes to the VBA code will never be required. I have searched for insight into modifying VBA code with VBA code and the instances I have found appear to not modify the code as saved but create an object and then run that object
Now my questions are:
- Is it possible to modify the code in Workbook ‘A’ from code in Workbook ‘B’, such that the new code will be saved in and run in future occasions of Workbook ‘A’ being opened?
- Is it possible to do this if Workbook ‘A’ has the VBA Project locked for viewing, and the appropriate password is available to the code in Workbook ‘B’?
- And can someone point me in the right direction to gain a deeper understanding of the details?