Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
MACRO: Catching only filled cell data
I want to have a macro to select the cells with only filled data . I
have tried with the dollar sign to select the entire sheet but it does not work. just give in options Thankue |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
MACRO: Catching only filled cell data
Sub nonempty()
Dim rr As Range, r2 As Range, r3 As Range Dim r4 As Range Set r2 = ActiveSheet.UsedRange Set r3 = ActiveSheet.UsedRange.SpecialCells(xlCellTypeBlank s) For Each rr In r2 If Intersect(rr, r3) Is Nothing Then If r4 Is Nothing Then Set r4 = rr Else Set r4 = Union(r4, rr) End If End If Next r4.Select End Sub But it wil not select cells that have only comments in them. -- Gary's Student "sumit" wrote: I want to have a macro to select the cells with only filled data . I have tried with the dollar sign to select the entire sheet but it does not work. just give in options Thankue |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Manual control of link updating for downloaded quotes? | Excel Discussion (Misc queries) | |||
error when running cut & paste macro | Excel Worksheet Functions | |||
insert date | Excel Worksheet Functions | |||
Macro question | Excel Worksheet Functions | |||
Printing data validation scenarios | Excel Worksheet Functions |