Hello fellow Excel users!
I have developed a report that enables users to drill down through our company hierarchy. The below VBA achieves this. However, I received feedback that they wanted the ability to produce a company level report. Currently the code and associated drop-downs begin a level down from the company view. Is there a way I could alter the script below if there are no selections made, it brings ALL data across (i.e. no need for filtering)? If needed I can paste my entire script in...
Thanks for any assistance,
Mike
I have developed a report that enables users to drill down through our company hierarchy. The below VBA achieves this. However, I received feedback that they wanted the ability to produce a company level report. Currently the code and associated drop-downs begin a level down from the company view. Is there a way I could alter the script below if there are no selections made, it brings ALL data across (i.e. no need for filtering)? If needed I can paste my entire script in...
VBA Code:
Sub Report_Builder()
With Sheets("Report Creator")
Sheets("Actions").Range("A1").AutoFilter 11, .Cells(2, 1).Value
If .Cells(2, 2) <> "" Then
Sheets("Actions").Range("A1").AutoFilter 12, .Cells(2, 2).Value
End If
If .Cells(2, 3) <> "" Then
Sheets("Actions").Range("A1").AutoFilter 13, .Cells(2, 3).Value
End If
.Select
End With
Thanks for any assistance,
Mike