vba - How to copy the data of FILTERED data from one sheet to another with same format -
i have similar question in link
copy rows contents , formatting (to sheet)
i'm trying copy data 1 sheet sheet in same workbook below code , i'm able copy, format of cells getting changed after copying, how can copy data same cell formats (with same length, width , color etc)
with activesheet .usedrange.specialcells(xlcelltypevisible).copy end activeworkbook.worksheets(newsheet).select activesheet .range("a1").select selection.pastespecial paste:=xlpasteallusingsourcetheme, operation:=xlnone _ , skipblanks:=false, transpose:=false end
.pastespecial xlpasteall .pastespecial xlpastecolumnwidths
Comments
Post a Comment