Hi Everyone,
i was wondering if this code
could be simplified in fewer lines. It adds some sheets, copies the first row, paste the same row on all the sheets and autofits the size.
Thank you,
Ossian.
i was wondering if this code
Code:
Range("A1").EntireRow.Copy
Sheets.Add After:=ActiveSheet
ActiveSheet.Name = "Pending"
ActiveSheet.Paste
Cells.EntireColumn.AutoFit
Sheets.Add After:=ActiveSheet
ActiveSheet.Name = "Closed"
Worksheets("Sursa").Select
Rows("1:1").Select
Application.CutCopyMode = False
Selection.Copy
Worksheets("Closed").Activate
Range("A1").Select
ActiveSheet.Paste
Cells.EntireColumn.AutoFit
Worksheets("Closed").Select
Rows("1:1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets.Add After:=ActiveSheet
ActiveSheet.Name = "Approved"
ActiveSheet.Paste
Cells.EntireColumn.AutoFit
Rows("1:1").Select
Application.CutCopyMode = False
Selection.Copy
Sheets.Add After:=ActiveSheet
ActiveSheet.Name = "Sursa2"
ActiveSheet.Paste
Cells.EntireColumn.AutoFit
Worksheets("Sursa").Select
could be simplified in fewer lines. It adds some sheets, copies the first row, paste the same row on all the sheets and autofits the size.
Thank you,
Ossian.