Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
How do i call the following code, but not get back any empty cells Set tempRange = Worksheets("Step Chart").Range("ColumnMapping") As it returns all the cells, even if they are blank/empty... I can return just the empty cells by using ..SpecialCells(xlCellTypeBlanks) What is the reverse of this? As in the end i want an array without any empty values, if there is any in the named range. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
RMJ,
If you have only constansts, use Worksheets("Step Chart").Range("ColumnMapping").SpecialCells(xlCell TypeConstants) If you have only formulas, use Worksheets("Step Chart").Range("ColumnMapping").SpecialCells (xlCellTypeFormulas) If you have mixed formulas and constants, you need With Worksheets("Step Chart").Range("ColumnMapping") Set tempRange = Union(.SpecialCells(xlCellTypeConstants), .SpecialCells(xlCellTypeFormulas)) End With HTH, Bernie MS Excel MVP "RMJames" wrote in message oups.com... Hi How do i call the following code, but not get back any empty cells Set tempRange = Worksheets("Step Chart").Range("ColumnMapping") As it returns all the cells, even if they are blank/empty... I can return just the empty cells by using .SpecialCells(xlCellTypeBlanks) What is the reverse of this? As in the end i want an array without any empty values, if there is any in the named range. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Named Range with blank cells | Excel Discussion (Misc queries) | |||
Generating truly blank cells | Excel Worksheet Functions | |||
Display first, second, etc Nonblank Cells in a Range | Excel Worksheet Functions | |||
enter numbers in blank cells | Excel Worksheet Functions | |||
Match function...random search? | Excel Worksheet Functions |