DKSmash2014
New Member
- Joined
- May 31, 2016
- Messages
- 2
Hello,
I am trying to come up with a way so that a manager can print a report showing which employees fall under which manager and their salaries.
So in the file I have Managers 1,2,3, & 4 and various employees. All the managers are in column A, employees Column B. So I guess this is similar to a print Group By
I have the basic print VBA set up, I am just not sure how to approach the select statement. Any help is much appreciated.
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">Sub PrintArea()
Range("A:A").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"Employees.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
With ActiveSheet.PageSetup
.Zoom = False
.Orientation = xlLandscape
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
End Sub</code>
I am trying to come up with a way so that a manager can print a report showing which employees fall under which manager and their salaries.
So in the file I have Managers 1,2,3, & 4 and various employees. All the managers are in column A, employees Column B. So I guess this is similar to a print Group By
I have the basic print VBA set up, I am just not sure how to approach the select statement. Any help is much appreciated.
<code style="margin: 0px; padding: 0px; font-style: inherit; font-weight: inherit;">Sub PrintArea()
Range("A:A").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"Employees.pdf", Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _
True
With ActiveSheet.PageSetup
.Zoom = False
.Orientation = xlLandscape
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
End Sub</code>