Hello. I've made this code to restructure an existing excel report. If I go to the VBA editor and just press F8 all the way the code runs perfectly.
If I use ALT+F8 and click "run" then by some reason the code skips the same part of the code every time.
The code highlighted is the code that is skipped when I click "run" or use a button to run the code.
I've no clue why it is like that. I'm using excel 2010. The code actually worked w/o problems but suddenly when I worked with a different part of the code, those 4 lines suddenly stopped working 
I even made a new macro just containing this code as well as another part of the code that fails to run at occasions. THIS code ALSO doesn't work when using "run" or when I run it using a button, but works if I press F8 
Any feedback is appreciated also if there's suggestions to my code that could be optimized
Bookmarks