Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
this will select cells with numbers stored as currency. (if formatted as
currency, but containing no value, it will not be selected) Sub markCurrency() Dim rng As Range, cell As Range For Each cell In Selection If VarType(cell) = vbCurrency Then If rng Is Nothing Then Set rng = cell Else Set rng = Union(rng, cell) End If End If Next rng.Select End Sub Select a rectangular area of cells to check and run the macro. -- Regards, Tom Ogilvy "Ron Kendall" wrote: I am trying to determine cells that contain currency amounts. Using IsNumeric also accepts cells with text numbers such as telephone and account numbers. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to discover the difference | Excel Worksheet Functions | |||
Excel Auto-Format cell to email format | Excel Discussion (Misc queries) | |||
discover cell causing column width | Excel Programming | |||
i discover that i cannot scroll in each part if i simply freeze p. | Excel Worksheet Functions | |||
How can I discover the FULL list of vbConstants | Excel Programming |