![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 26
|
I want to blank out contents of column if the date is 9999-12-31 and i want to keep other dates intact. Could some one help me with this please?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Leiden, The Netherlands
Posts: 68
|
Simply use a Find and Replace (Edit - Replace) for the date mentioned, keeping the "replace with" field empty. In the "find what" field, you should type the date exactly as it appears in the formula bar.
Marc |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 26
|
may be this is very simple question to ask but can anyone tell me please.
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Posts: 26
|
but i am doing this within a macro. is there a simpler way to do it by selecting the whole column
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Leiden, The Netherlands
Posts: 68
|
You can do the same from a macro:
MyColumn.Replace What:="12-31-9999", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False where MyColumn is the range you want to scan. Marc |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Posts: 26
|
Thanks
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|