How to save only a selection of range to PDF?

Is there a way to save only the selection to PDF format? For example I want to save the range A10: G40 to PDF

@prashanthnag,
Please try to specify the print area and let us know your feedback.

worksheet.PageSetup.PrintArea = “A10:G40”;