Your sheet formats are inconsistent
Examples:
Master and ACP end in column AA
Azzure and Citrix end in column CA
Template ends in CS
I extended Master to CA (since that's what you said) and used this macro
Option Explicit
'What i 'm trying to achieve to pull all data from multiple sheets in one worksheet, except for a couple of named sheets, into a master sheet.
'However I only want the data from a specific range A2:CA34 if it has content and ignore any blank rows. I hope this makes sense?
'All sheets i'm pulling from have the same range's to select (A2:CA34), however some sheets will have three rows populated and some
' may have all, I want the data without the blanks if i can.
Sub CombineData()
Dim Sht As Worksheet
Dim aSkipSheets As Variant
Dim sSkipSheets As String
Dim rMasterStartRow As Range, rRowToCopy As Range
Dim r As Long
aSkipSheets = Array("Master", "LogisticsTeam", "Template", "PM_Resource", "BA_Resource", "Test_Resource", "Capacity")
sSkipSheets = Join(aSkipSheets, "#") & "#"
Application.ScreenUpdating = False
With Worksheets("Master")
Set rMasterStartRow = .Cells(.Rows.Count, 1).End(xlUp).Offset(1, 0)
End With
For Each Sht In ActiveWorkbook.Sheets
With Sht
If InStr(sSkipSheets, .Name & "#") <> 0 Then GoTo shtNext
If Len(Trim(.Range("A11").Value)) = 0 Then GoTo shtNext
Application.StatusBar = "Now checking " & .Name
For r = 2 To 34
Set rRowToCopy = .Cells(r, 1).Resize(1, 79) ' A to CA
If Application.WorksheetFunction.CountA(rRowToCopy) > 0 Then
rRowToCopy.Copy rMasterStartRow
Set rMasterStartRow = rMasterStartRow.Offset(1, 0).Resize(1, 79)
End If
Next r
End With
shtNext:
Next
Worksheets("Master").Select
Application.ScreenUpdating = True
Application.StatusBar = False
End Sub
The attachment just has a few sheets in it. I had to 'clean' the empty far right columns and bottom rows since there was no way that could be a 6MB workbook