I don't think I completely realized what you wanted. I think the code below should resolve your issues. In order for you to have it work when the workbook is opened, you will have to place the macro in the "ThisWorkbook" module instead of "Module1" or any other module. If the code below doesn't work, try clicking on the blank column in between where the code goes and where all the modules are. If you do it correctly, a red circle will appear. This creates a break in the code so that when the code gets to that line it stops before it is executed. This is helpful for finding where the code isn't working properly. Try finding out what line(s) aren't working as you would expect and either modify it to work the way you want it to or post the code that you have and the issue you see and hopefully it can get resolved.
Bookmarks