I'm trying to copy the contents of a sheet into a new .xlsx document.
I can not keep source coloumn widht and row height.
Left is SOURCE --------> RIGHT is COPY/PASTE from code VBA above
I can not keep source coloumn widht and row height.
Code:
For i = 1 To wksht.Range("A" & wksht.Rows.Count).End(xlUp).Row
Set wb = Application.Workbooks.Add
dataRange.Copy wb.Sheets(1).Range("A1", wb.Sheets(1).Cells(dataRange.Rows.Count, dataRange.Columns.Count))
wb.SaveAs filename:=path & wksht.Range("A" & i).Value & ".xlsx"
wb.Close
Next i
Left is SOURCE --------> RIGHT is COPY/PASTE from code VBA above