OK give this try and let me know if it works. I modified your code a little bit as well as your workbook to what I think is a better solution.
In there workbook you will now find a hidden sheet with a dynamic range to cut down the several ORs you had in one of your columns. I also hid the Formula sheet because its not necessary for our task. We will leave it hidden there as reference as well
Regarding your code:
1. If want you need is data then you copy from a source but if you need a template just write it on the code.
2. Autofill is a little tricky and can slow down big workbooks, it also make your screen flicker. Instead of that use an R1C1 formula and paste in every single cell you need them. My code might seem more complex than then one you had but in the end the outcome will be more efficient. Think of it as two steps (yours) :
-Put a formula in A1
-Autofill until A10
One step (mine)
-Put a relative formula in cells A1 to A10
Note: Making an R1C1 formula is very easy just turn on the macro recorder, select the cell with the formula, hit enter, stop recording...and voila
3. If you need to perform th same task several times or if your code starts getting too long think in modularization. In other words the breaking down of your code into smaller pieces that you will later assemble together. Look at my code to see what I mean. BTW in my code even though ther are more than one macro the only one you have to execute is WireDataMacro.
I hope all this helps you out in your coding.
Thanks
Here is the File Example.xlsm
And here is the code:
Thanks
Bookmarks