Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I wanted to know. If i have a worksheet, I want to create a code that will copy rows i their Column H & G are both equal to "0" to another worksheet whic will be called missing I started to but I am having problems with naming the selection. Sub paste() Range("A12:M12").Select ' select Header row Selection.AutoFilter 'copy all where column H and G is zero Selection.Columns ("H:G"), Criteria1:="0", Operator:=xlAnd Rows("13:2000").Select Selection.Copy Shift:=xlUp 'Reset filter Selection.Columns ("H:G") 'Paste to new sheet "missing " Sheets("missing").Select Range("A3").Select Selection.PasteSpecial paste:=xlPasteColumnWidths Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False ActiveSheet.paste End Sub PLEASE HELP---- Email hanks so much for your hel -- ICSAnalys ----------------------------------------------------------------------- ICSAnalyst's Profile: http://www.excelforum.com/member.php...fo&userid=1509 View this thread: http://www.excelforum.com/showthread.php?threadid=27789 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying Conditional Data Bar Format by Row to entire sheet | Excel Discussion (Misc queries) | |||
Copying conditional formatting to entire sheet | Excel Discussion (Misc queries) | |||
Copying formatting of entire sheet | New Users to Excel | |||
How do I convert an entire sheet from columns to rows? | Excel Worksheet Functions | |||
Copying rows with spesified data on one or more columns from sheet/file to another? | Excel Programming |