A report that I pull is horribly setup, and my attempts to fix it are not going well.
I've gotten a good amount of it done, but unmerging all the cells in the used range is rather difficult, because, for some reason, when the report is converted, it reports itself as having 29,000 rows of data (there's really on ~850).
My workaround was to simply pull the entiresheet into an array, thinking that all of the cells will be unmerged / played correctly. Instead, the array seems to be cutting out entire columns of data.
Is there an efficient way to remedy this?
Please find my current code below.
If wbLoop.Name = "Report.xlsx" Then
If wbLoop.Sheets(1).Cells(1, 1).Value2 = "" Then wbLoop.Sheets(1).Cells(1, 1).EntireColumn.Delete
Do Until wbLoop.Sheets(1).Cells(1, 1).Value2 = "Finance1"
wbLoop.Sheets(1).Cells(1, 1).EntireRow.Delete
Loop
arrReport() = wbLoop.Worksheets("Report").UsedRange.Value2