Forum Discussion
mydataismeaningless
Nov 21, 2021Copper Contributor
Finding a way to generate "report" exports (PDF) down a list of ID's
So I've provided dummy data to help explain my case. My real data has 200+ rows of employee salary info. There are two sheets: "Report" and "Data" The report values are populated by VLOOKUP based o...
- Nov 21, 2021
See the attached version. It is a macro-enabled workbook so you'll have to allow macros when you open it.
HansVogelaar
Nov 22, 2021MVP
Change
wshReport.ExportAsFixedFormat Type:=xlTypePDF, Filename:=strPath & lngID & "_" & ".pdf"
to
Dim strFullName As String
strFullName = wshReport.Range("B4").Value
wshReport.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=strPath & lngID & "_" & strFullName & ".pdf"
mydataismeaningless
Nov 22, 2021Copper Contributor
Thank you so much! I couldn't figure this it out for the life of me.