Hi all, I know my way around Excels FORMULAS tab well enough but I am just starting to practice my VBS (it's like a foreign language that I can kind of tell what it says if it's written out, but no clue how to start from scratch!). Below is a macro I've used to update the date on a worksheet and save as PDF (thanks again to this forum for helping me with that) which is what I would like to use as the basis for this: I want to create a macro that will only create a certain PAGE on the worksheet, instead of everything. Is there a way to do this?
<>
Sub Save_Drywall_Estimate_Pdf()
' Saves active sheet as PDF file.
With Range("P104")
.Value = Date
.NumberFormat = "mmmm, d yyyy"
End With
Name = ThisWorkbook.Path & "\" & ActiveSheet.Range("AD3").Value & " - " & ActiveSheet.Name & " - " & _
Format(Now(), "mm.dd.yyyy") & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Name, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
<>
Sub Save_Drywall_Estimate_Pdf()
' Saves active sheet as PDF file.
With Range("P104")
.Value = Date
.NumberFormat = "mmmm, d yyyy"
End With
Name = ThisWorkbook.Path & "\" & ActiveSheet.Range("AD3").Value & " - " & ActiveSheet.Name & " - " & _
Format(Now(), "mm.dd.yyyy") & ".pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Name, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub