excel - VBA Set printing format to created sheet -
my goal create new sheet no exact name sheetxx paste copied cells here, , change printing format fit columns 1 page. having troubles activate new sheet because don't know name.
this have now:
' workbooks("cards").worksheets.add.range("a1") .cells(1).pastespecial xlpastecolumnwidths .cells(1).pastespecial xlpastevalues ', false, false .cells(1).pastespecial xlpasteformats ', false, false application.cutcopymode = false end application.printcommunication = false activesheet.pagesetup .fittopageswide = 1 .fittopagestall = false end application.printcommunication = true
this code changes printing format on sheet copied cells.
any appreciated.
thank :)
Comments
Post a Comment