I am having an issue with saving multiple worksheets as a pdf. I have looked on this website (and others) and found similar code to what I have been using. However, the code that I have modified to more closely resemble Save multiple sheets to .pdf and http://www.vbaexpress.com/kb/getarticle.php?kb_id=160 combined.
However, I am running into an error in my last line "424: Object Required". If you could steer me in the right direction it would be greatly appreciated!
Sub SaveAs()
Dim Fname As String
Dim Fpath As String
Fname = Sheets("Sheet1").Range("FT5").Text 'The Cell I want to use as my file name
Fpath = "C:" 'my location
ThisWorkbook.Sheets(Array("Sheet 1", "Sheet 2")).Select 'My selected tabs
ActiveSheets.ExportAsFixedFormat Type:=xlTypePDF, _
FileName:=Fpath & "\" & Fname & ".pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True 'My issue is with this line....
End Sub