"Save As" mac 上的宏(vba)
"Save As" Macro (vba) on mac
我这里有一些代码用于保存 .pdf 文件,但不是保存特定的 sheet,而是保存所有 excel sheet。
我想专注于保存一个特定的 sheet.
希望大家帮帮忙
Sub Save_client()
Sheets("Client Form").ExportAsFixedFormat _
Type:=xlTypePDF, Filename:="/Users/"user"/Desktop/" & Range("A2") & Range("B2") & ".pdf"
End Sub
包括 From
和 To
参数:
这将仅导出第 2 页
From:=2, To:=2
我这里有一些代码用于保存 .pdf 文件,但不是保存特定的 sheet,而是保存所有 excel sheet。 我想专注于保存一个特定的 sheet.
希望大家帮帮忙
Sub Save_client()
Sheets("Client Form").ExportAsFixedFormat _
Type:=xlTypePDF, Filename:="/Users/"user"/Desktop/" & Range("A2") & Range("B2") & ".pdf"
End Sub
包括 From
和 To
参数:
这将仅导出第 2 页
From:=2, To:=2