KlausW
Active Member
- Joined
- Sep 9, 2020
- Messages
- 453
- Office Version
- 2016
- Platform
- Windows
Hello everyone, can anyone help to change this VBA code so that it saves in xlsx format instead of PDF.
Any help will be appreciated.
Best regards Klaus W
Any help will be appreciated.
Best regards Klaus W
VBA Code:
Sub Gem_og_Send_Klik()
'Varriables
Dim SaveRng As Range
Dim pdfname As String
Dim path As String
'Setting range to be saved
Set SaveRng = Range("A1:j42")
'path
path = Range("S9")
Filename = Range("K9")
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=path & Filename & ".pdf", _
OpenAfterPublish:=False, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
Quality:=xlQualityStandard
Find_and_Open_Product_Workbook
End Sub