使用VBA,如何将工作表打印范围用作要复制的单元格范围,将Excel工作表复制到新工作簿?
Yourworksheet
is the worksheet with your data that you will have to declare accordingly.
Dim PrintZone As String
PrintZone = Yourworksheet.PageSetup.PrintArea
Yourworksheet.Range(PrintZone).Copy
Workbooks.Add
ActiveSheet.Paste
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.