Hello all
I'm extremely new to this whole VBA world and have a macro to save specific sheets in a workbook to a specific location. Is there any way I can modify this so that once these are saved they can be sent via email in Lotus Notes or saved as drafts? They need to be sent to different recipients if that makes a difference.
Any help on this would be greatly appreciated. I have been looking for a solution to this but can't seem to get this to work.
Any help with this would be greatly appreciated. Again, very sorry, very very new to all this.
I'm extremely new to this whole VBA world and have a macro to save specific sheets in a workbook to a specific location. Is there any way I can modify this so that once these are saved they can be sent via email in Lotus Notes or saved as drafts? They need to be sent to different recipients if that makes a difference.
Any help on this would be greatly appreciated. I have been looking for a solution to this but can't seem to get this to work.
Code:
Sub SaveAsPDF()
'
' SaveAsPDF Macro
' Saves Each Sheet as a PDF in a specific location with the Tab name.
'
'
'
Sheets("Sales Report").Select
Range("A1:R237").Select
FilePathHome = "I:\PARTS\Reports PDF - Do not remove"
'
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
FilePathHome & "" & sFileName & Range("E7").Value & " - " & sFileName & Range("E9").Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
'
'
Sheets("Inventory").Select
Range("A1:R237").Select
FilePathHome = "I:\PARTS\Reports PDF - Do not remove"
'
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
FilePathHome & "" & sFileName & Range("E7").Value & " - " & sFileName & Range("E9").Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
'
'
End Sub
Last edited by a moderator: