Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that runs a filter, copies the results, and pastes it into
another worksheet. How do I skip to next part of code if the filter results are blank? For some reason, Excel 2007 crashes when it tries to copy and paste blank filter results. This is part of the code that I have now: Sheets("Screens").Select Range("B9:FA9").Select Selection.Copy Sheets("List").Select Range("AI6").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.Run "ShowAll" Application.Run "Run_All_Filters" Range("D13").Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("Selector").Select Range("A2").Select Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False How do I modify this so if D13 is blank and there is nothing to select, it will skip on to the next part of the code? Thanks... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Number Cells skip blank cells, Excel 2000 & 2003 | Excel Programming | |||
How to skip the blank cells for calculating StdDev? | Excel Worksheet Functions | |||
Skip blank cells in diagrams | Charts and Charting in Excel | |||
How do I skip blank cells when copying over a range of cells? | Excel Discussion (Misc queries) | |||
how to skip the blank cells | Excel Discussion (Misc queries) |