Hi all,
I have some issue with the following code :
Code
- For Each oWs In ThisWorkbook.Worksheets
- Select Case oWs.Name
- Case "Script", "Combined"
- 'Do nothing
- Case Else
- iX = iX + 1
- ''/// copy headers first time
- If iX = 1 Then
- oWs.Range("A7").CurrentRegion.Copy TargetWS.Range("A1")
- Else
- Set rRng = oWs.Range("A7").CurrentRegion
- Set rRng = rRng.Offset(1, 0).Resize(rRng.Rows.Count - 1, _
- rRng.Columns.Count)
- With TargetWS
- rRng.Copy .Cells(.Rows.Count, 1).End(xlUp).Offset(1)
- End With
- End If
- End Select
My worksheets tend to have some blank cells in column A and B, so the current script only pulls data where there are non-empty cells in column A, is there a workaround here as I would want to include the rows that has empty cells in column A as well in my "Combined" Sheet. Please refer to attached for a picture reference. Thanks for reading!