Hi guys
I have not used VBA for a long time so bear with me.
I have a VBA code that works in a macro enabled workbook – so the VBA code is specific to that book. However, every 2 months I need to overwrite this specific workbook and in the process the VBA code is deleted. I found out through trial and error that the code needs to be in this macro enabled workbook for it to work because it is triggered by a double click event. The workbook is the always the same name.
So, the question is how do I stop the code being deleted when I overwrite the specific workbook it is associated with?
And help appreciated
Thanks
I have not used VBA for a long time so bear with me.
I have a VBA code that works in a macro enabled workbook – so the VBA code is specific to that book. However, every 2 months I need to overwrite this specific workbook and in the process the VBA code is deleted. I found out through trial and error that the code needs to be in this macro enabled workbook for it to work because it is triggered by a double click event. The workbook is the always the same name.
So, the question is how do I stop the code being deleted when I overwrite the specific workbook it is associated with?
And help appreciated
Thanks