[Head banging against desk....] I've been working on a spreadsheet for several weeks and I'm down to the very last things that need to be added to get it to do everything I want it to do. Spent the entire day today and yesterday trying to figure this last thing out and it's just not working!! This spreadsheet is the first time I've ever worked with VBA so it's very confusing.
I have multiple worksheets called "Daily_Worksheet0", "Daily_Worksheet1", "Daily_Worksheet2", etc. and the user can keep adding new sheets with a button. Then there's a sheet called "SUMMARY" where all the data from the other sheets is consolidated together. This last part I'm trying to do is take data from all the Daily_Worksheets in cells A41:E47 (which are merged into one cell per row) and J41:L47 (which are also merged into one cell per row) and copy them side by side to a table in the SUMMARY worksheet starting at cell I43. It should be copying the data from each Daily_Worksheet into the next blank cell under the previously added data.
I know merged cells can be an issue but the cells in the Daily_Worksheets need to be merged so I can't undo that. I've tried copying the data right from the merged cells in the Daily_Worksheets to unmerged cells in the SUMMARY worksheet and I've also tried merging cells in the SUMMARY worksheet to match the number of cells merged in the Daily_Worksheets but I couldn't get either to work. What I'm now trying to do is have the code unmerge the cells in the Daily_Worksheets, copy and paste the data to the SUMMARY sheet, and then re-merge the cells in the Daily_Worksheets. Here's the code I have so far. I keep getting an error at "For i = LBound(reMerge) To UBound(reMerge)" (part of some code I found online) and an occasional error in the Paste Special section but it doesn't happen all the time for some reason. Can anyone help???
Please Login or Register to view this content.
Bookmarks