I'm looking for a way to save a range in a sheet to a png or jpg file. Currently, I'm able to open up the Save As dialog box for a PDF, so doing the same for a PNG would be fantastic.
Below is my code for Save As PDF. Any help to Save As an image would be fantastic.
Below is my code for Save As PDF. Any help to Save As an image would be fantastic.
VBA Code:
Sub SaveAsPDF()
Application.ScreenUpdating = False
Dim ws As Worksheet: Set ws = ActiveSheet
With Sheets("Invoice")
.Activate
Application.Dialogs(xlDialogSaveAs).Show .Range("e1") & " " & .Range("b12") & " - " & .Range(" b14"), 57
End With
ws.Activate
End Sub