I have written the following code to produce a report for each region in MS Excel. I need to modify the code to print the report as PDF, not Excel file. I cannot find any relevant command which I might use to amend the code. Could someone out there review the code and suggest relevant changes?
Sub PrintRegionalReports()
Dim Counter As Integer
Dim Region As Integer
For Counter = 0 To 15 Step 1
Region = Counter + 1
DoCmd.OpenReport " Strategic Plan", acViewNormal, , "[Region] = " & Region
DoCmd.OutputTo acOutputReport, "Strategic Plan", acFormatXLS, "C:\Strategic Plan Region - " _
& Region & ".xls"
Next
End Sub
Much appreciate your help.
Cheerrs
Sub PrintRegionalReports()
Dim Counter As Integer
Dim Region As Integer
For Counter = 0 To 15 Step 1
Region = Counter + 1
DoCmd.OpenReport " Strategic Plan", acViewNormal, , "[Region] = " & Region
DoCmd.OutputTo acOutputReport, "Strategic Plan", acFormatXLS, "C:\Strategic Plan Region - " _
& Region & ".xls"
Next
End Sub
Much appreciate your help.
Cheerrs