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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -