I've found a bit of VBA script that works:
Sub ExportToPDF()
With Sheets("Results").Range("B10:J100")
.ExportAsFixedFormat _
Type:=xlTypePDF, _
FileName:="C:\Export.pdf", _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=True
End With
End Sub
I'm still learning VBA, I do not actually need the range to be saved as a separate file, I just want the range selected to be published as a PDF that opens up.
I am not sure how to amend the above code