I have a workbook named outstanding actions. I have several new workbooks that is created from time to time that I use a macro in these new workbooks to copy the action from these workbooks to the Outstanding actions workbook. The problem is that the workbook name change creates a problem in VBA whereby I don’t know how to overcome the problem on how to change the workbook name in VBA. For Example this workbook is named "Spares" and the Workbook selection will be " Windows("Spares.xls").Activate " in VBA what if the Workbook name changes to "Cars". How can this problem be overcome.
VBA must automatically change the name in the code. I have a cell that contains the workbook name, I am sure it could be used but how do you code that?
VBA must automatically change the name in the code. I have a cell that contains the workbook name, I am sure it could be used but how do you code that?