Hey all,
Wondering if anyone can help me.
Basically I have a number of sheets in a workbook that I need my VBA to search through for any rows that contain a date within a range, copy that information and paste it into a specified sheet. I have it working for a single date using VBA but cannot work out how to get it to work a range specified by the user (start and end dates).
Here is a pastebin for my code: [VisualBasic] VBA Overflow Daterange - Pastebin.com
I am getting an overflow error on line "nxtRw = nxtRw + .SpecialCells(xlCellTypeVisible).Count - 1"
Wondering if anyone can help me.
Basically I have a number of sheets in a workbook that I need my VBA to search through for any rows that contain a date within a range, copy that information and paste it into a specified sheet. I have it working for a single date using VBA but cannot work out how to get it to work a range specified by the user (start and end dates).
Here is a pastebin for my code: [VisualBasic] VBA Overflow Daterange - Pastebin.com
I am getting an overflow error on line "nxtRw = nxtRw + .SpecialCells(xlCellTypeVisible).Count - 1"