THANK YOU SO MUCH!
Absolutely fantastic code. I will be honest with you, I understand the code itself only partially but thats ok.
I did play around with the code and the spreadsheet.
I changed all the numbers so they would be in sequential order like below
100000001
100000002
100000003
100000004
100000005
100000006
100000007
100000008
100000009
100000010
etc
etc
So then after running the code I'm able to check the output to confirm if it is picking up all the data. So far everything is good.
As far as I can understand I can freely change x = .Range("AH9:IE" & .Cells(Rows.Count, "C") to anything else as long as the starting point, end point and the pattern stays the same. So for example I can easily change AH9 to G9 to extend the scan area to the left, or I could change IE to HV to reduce the area to the left. I tested it out, and it works correctly.
I did have to add error handler for the section below. If there are no blanks to be deleted, it errors out. Though this is very unlikely scenario but one can never know
I also played around by adding extra row on each section (potentially to add some other information in future etc) and I changed the code as below.
This still worked fine. Good stuff.
I do have 2 questions
1) Is it safe to assume that the code would also work if I would add 1 column to each section and change the code as below (providing that I would also change AH9:IE to accommodate the changes)
2) Looping through the work area in this sort of fashion got me thinking. By this sort of fashion I meant that there is a working area defined and then the code loops through certain pattern. Is it also possible to populate formulas to these tables to certain cells? If yes, could you help me with this. I will try to do an example spreadsheet.
Thank you again. I hope that one day I can get to a similar level as you are right now. It will probably take me another 100 years
Cheers
Bookmarks