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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -