Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Delete a cell when found

i need to know how to delete the contents of a cell when a column of dates
contains the text "Past Due" using some type of formula or visual basic.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Delete a cell when found

Formulas can't delete cells.

And maybe you don't need VBA.

If the cell contains only the text: Past Due
Select that column
Edit|Replace
what: Past Due
with: (leave blank)
replace all

If the cell can contain other text besides that "Past Due" string:
Select that column
Edit|Replace
what: *Past Due* (the asterisks are wild card characters)
with: (leave blank)
replace all

ricksgma wrote:

i need to know how to delete the contents of a cell when a column of dates
contains the text "Past Due" using some type of formula or visual basic.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Delete a cell when found

Thanks dave. that works good. is there a macro or something i can make that
will do the same thing by pressing a button??


"Dave Peterson" wrote:

Formulas can't delete cells.

And maybe you don't need VBA.

If the cell contains only the text: Past Due
Select that column
Edit|Replace
what: Past Due
with: (leave blank)
replace all

If the cell can contain other text besides that "Past Due" string:
Select that column
Edit|Replace
what: *Past Due* (the asterisks are wild card characters)
with: (leave blank)
replace all

ricksgma wrote:

i need to know how to delete the contents of a cell when a column of dates
contains the text "Past Due" using some type of formula or visual basic.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Delete a cell when found

Record a macro when you do it manually and you'll have the code that you can
assign to the Forms toolbar button.

ricksgma wrote:

Thanks dave. that works good. is there a macro or something i can make that
will do the same thing by pressing a button??

"Dave Peterson" wrote:

Formulas can't delete cells.

And maybe you don't need VBA.

If the cell contains only the text: Past Due
Select that column
Edit|Replace
what: Past Due
with: (leave blank)
replace all

If the cell can contain other text besides that "Past Due" string:
Select that column
Edit|Replace
what: *Past Due* (the asterisks are wild card characters)
with: (leave blank)
replace all

ricksgma wrote:

i need to know how to delete the contents of a cell when a column of dates
contains the text "Past Due" using some type of formula or visual basic.


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Delete a cell when found

Great. Thanks for all your help.

"Dave Peterson" wrote:

Record a macro when you do it manually and you'll have the code that you can
assign to the Forms toolbar button.

ricksgma wrote:

Thanks dave. that works good. is there a macro or something i can make that
will do the same thing by pressing a button??

"Dave Peterson" wrote:

Formulas can't delete cells.

And maybe you don't need VBA.

If the cell contains only the text: Past Due
Select that column
Edit|Replace
what: Past Due
with: (leave blank)
replace all

If the cell can contain other text besides that "Past Due" string:
Select that column
Edit|Replace
what: *Past Due* (the asterisks are wild card characters)
with: (leave blank)
replace all

ricksgma wrote:

i need to know how to delete the contents of a cell when a column of dates
contains the text "Past Due" using some type of formula or visual basic.

--

Dave Peterson


--

Dave Peterson



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete a row if strong NOT found.... JayKay100 Excel Discussion (Misc queries) 9 November 23rd 08 06:20 AM
How to delete values of a cell if it is found in another coloumn karty Excel Worksheet Functions 3 October 22nd 05 04:29 PM
Further help on delete criteria found rjamison Excel Programming 0 June 14th 05 12:14 AM
Further help on delete criteria found rjamison Excel Programming 0 June 14th 05 12:14 AM
Further help on delete criteria found Tempy Excel Programming 6 April 27th 05 08:52 AM


All times are GMT +1. The time now is 11:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"