A couple of suggestions to improve your macro writting skills & the efficiency of the macro.
Note :- These suggestions May not be suitable as I do not have knowlwdge of the overall project and they will have a very small impact on your macro. (That small you will not even notice the difference).
Unless you have a need for variables to be used by other macros on the same module sheet all variables should be declared within the macro.
The way you have declared them causes Excel to reserve memory for them even after the macro has stopped running. By declaring them within the macro the memory is released when the macro stops running.
It is good to see you setting variables to nothing at the end of the macro is also good for releasing memory.
This part of the code
can be replaced by
If an item is going to be refered to only once then their is usually no advantage in setting it to a variable 1st
In the following code you set a variable with the result of a test condition when you could directly test the condition as part of the If statement
By combing 2 lines of code into 1 you can do away with the bwbopen variable
Replace
with & delete variable
Moving
Into the If statement does away with the need for a Goto command
If you wish to adopt these chages this is the total code for my susggestions
Bookmarks