Hi All,
I am hoping you can help me - I have found a couple of macros on this board and a few other sites but I can't seem to amend them to get them to work for my workbook - the problem is I have found bits of code from various macros and tried to put them together in one and failed miserably so thinking starting from scratch maybe better.
I have a spreadsheet template that is filled out by others each week and sent back to me.
I am trying to get a macro that will combine data off the tabs onto one main sheet in the same workbook - my current macro creates a new tab called 'WeekCombined'
The 1st two tabs have lists of data that are used for data lists on all the other tabs - these are hidden so I tried to add into the macro that it looked at visible sheets only (however this did keep throwing an error)
The data I wish to copy on all the other tabs starts in the same row (8) and the columns are always A-L, I want to copy the headers from the 1st visible tab (so A7-L7) then just the data (starting in row 8) for the remaining tabs.
The main issue I am having is that every tab can have a varied number of rows (so some will just have row 8 with data in, others will have data all the way to row 88)
I tried to find a macro to copy up to the last row which contains data, however column L contains a formula (my template has this formula to row 58 - they insert more rows if needed and copy the formula down), and therefore the macro always pulls to rows 8-58 despite the rest of the row being empty.
Is there macro that will do all of the above but only copy the row A-L if there is data in column A?
Any help/advice would be greatly appreciated,
Kind Regards
Melissa
I am hoping you can help me - I have found a couple of macros on this board and a few other sites but I can't seem to amend them to get them to work for my workbook - the problem is I have found bits of code from various macros and tried to put them together in one and failed miserably so thinking starting from scratch maybe better.
I have a spreadsheet template that is filled out by others each week and sent back to me.
I am trying to get a macro that will combine data off the tabs onto one main sheet in the same workbook - my current macro creates a new tab called 'WeekCombined'
The 1st two tabs have lists of data that are used for data lists on all the other tabs - these are hidden so I tried to add into the macro that it looked at visible sheets only (however this did keep throwing an error)
The data I wish to copy on all the other tabs starts in the same row (8) and the columns are always A-L, I want to copy the headers from the 1st visible tab (so A7-L7) then just the data (starting in row 8) for the remaining tabs.
The main issue I am having is that every tab can have a varied number of rows (so some will just have row 8 with data in, others will have data all the way to row 88)
I tried to find a macro to copy up to the last row which contains data, however column L contains a formula (my template has this formula to row 58 - they insert more rows if needed and copy the formula down), and therefore the macro always pulls to rows 8-58 despite the rest of the row being empty.
Is there macro that will do all of the above but only copy the row A-L if there is data in column A?
Any help/advice would be greatly appreciated,
Kind Regards
Melissa