Hi
I'm pretty good with Excel but complete novice with the macro/vba side of things, I've found responses which appear to be answers to my responses but my experience at building macros is so low I simply dont understand the posts ive read, so im hoping there is someone out there who has the time to either guide or help a struggling macro newbie. My issue is this
I have a workbook with several worksheets - the columns in all the worksheets are the same but represent different projects eg. w/s 1 is pigs, w/s 2 is cows and w/s 3 is horses. They all have the same column titles in the same columns eg. col a is name, col b is farm, col c is age etc.
I want to add a summary sheet which automatically updates or can be updated with a macro but my issue is that w/s 1 might contain 100 rows and w/s 2 may contain 67 and w/s 3 contains 450.
I would like the summary sheet to display the contents of all the w'sheets in one place so i can then apply an autofilter and list the data however i want.
I could just kick off a macro, select A1 to Z500 for each worksheet, copy and paste to the summary sheet, then sort, leaving all the blanks at the bottom, but some cells have formulas in and would still interfere with the sorting afterwards.
Ideally, I would like to press a button, the macro gos to w/s 1 selects cols a-z, looks in col G (for example) and as soon as it hits a cell that contains no data (eg row 30), it auto selects a1 to z29, copies the data and pastes it to the summary sheet, the macro then goes off to the secon w/s and does the same thing and drops it on the next free row of the summary sheet and then repeats for the rest of the w/sheets.
Looking at it now, it does look like it might be difficult actually. But like i said, if you give me a load of code etc, i dont even know where to start with adding it to the macro, but i do know how to record one and run it based on mouse clicks etc.
Be great if someone can help with this
Thanks
Simon
Bookmarks