I have created a report for a report card. Student's name is stored in sheet2 and report is present in sheet 1. cell C3 contains Students name. I have 30 students and what i need is C3 should change automatically by using list f 30 students in sheet 2 and generate 30 different reports and save it in a folder. I wrote codes for second part but got no idea about the 1 part. Can any one help me on this pls...
second part code goes like this...
Sub Make_PDF()
Dim pdfName As String
Dim spath As String
pdfName = Range("C3").Text
spath = "D:my folderIndividual reports" & fname
fname = spath & pdfName + " Weekly Update " & Format$(Date, "mm-dd-yyyy") + ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fname, Quality:=xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, OpenAfterPublish:=False
MsgBox ("Files saved in your drive")
End Sub
Thanking you in advance,
Dee
second part code goes like this...
Sub Make_PDF()
Dim pdfName As String
Dim spath As String
pdfName = Range("C3").Text
spath = "D:my folderIndividual reports" & fname
fname = spath & pdfName + " Weekly Update " & Format$(Date, "mm-dd-yyyy") + ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fname, Quality:=xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, OpenAfterPublish:=False
MsgBox ("Files saved in your drive")
End Sub
Thanking you in advance,
Dee