Hi Guys, I'm really hoping you can help. I'm a bit of a novice as visual basic goes but I'm trying to learn.
I'm using Ron de Bruin's code here and its almost there, I've been reading in I don't know how many forums and I just cant find the answer.
I'm trying to get the code to skip the blank rows in the group of spreadsheets I need to consolidate. Using Ron's code below, I've created export.xlsx from five data sheets book1, book2, book3, book4 and Timesheet IGW Week 45 2013.xlsx, these are exports from another workbook, the names are not important but I've attached the files for convenience.
In the file export.xlsx you will see a lot of lines with #N/A and 0 that I am trying to filter out in the consolidation process.
Column C is hidden in the data sheets I'm consolidating from so I'd like to avoid that all together if possible. Also of note is that cells b11:b28 and d11:d28 are data validation cells from the original master sheet.
Here's my thinking:-
In the section "Set sourceRange = .Range("b8:t30")" , could I use "Set sourceRange = .Range("b8:b30, d8:t30")" to avoid column C?
I tried using "LastRow" but the debug kept stopping there so not sure what I was doing wrong.
Any help or advice would be greatly appreciated.
Ginge.
Ron's code, with paths edited to suit my system.
Bookmarks