hip2b2
Board Regular
- Joined
- May 5, 2003
- Messages
- 135
- Office Version
- 2019
- Platform
- Windows
Below is the code I am using (I know, not very sophisticate, but the best I know how to do).
Two Problems
1- I would like to copy the values (not the formulas) AND formatting from sheet "Prod Runs" to "Sheet 2". As it stands I get the values but lose the formatting.
2- "Sheet 2", "Row L" has several rows with the word "Closed" (these are random, e.g., they could be anywhere in the "Column L". I would like to know how to delete the rows where "Closed" is found in "Column L"
Any and all suggestions will be gratefully received.
Two Problems
1- I would like to copy the values (not the formulas) AND formatting from sheet "Prod Runs" to "Sheet 2". As it stands I get the values but lose the formatting.
2- "Sheet 2", "Row L" has several rows with the word "Closed" (these are random, e.g., they could be anywhere in the "Column L". I would like to know how to delete the rows where "Closed" is found in "Column L"
Any and all suggestions will be gratefully received.
Code:
Sub ACCT_MGR()
Sheets("Sheet2").Select
Cells.Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Range("A1").Select
Sheets("Prod Runs").Select
Columns("A:S").Select
Selection.Copy
Sheets("Sheet2").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Columns("A:T").EntireColumn.AutoFit
Columns("I:O").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
ActiveWindow.SmallScroll ToRight:=-1
Columns("B:B").ColumnWidth = 25
Columns("D:D").ColumnWidth = 1.5
Columns("I:I").ColumnWidth = 2.5
Range("A1").Select
Sheets("Prod Runs").Select
Range("A8").Select
End Sub