ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete a cell when found (https://www.excelbanter.com/excel-programming/395103-delete-cell-when-found.html)

ricksgma

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.


Dave Peterson

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

ricksgma

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


Dave Peterson

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

ricksgma

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



All times are GMT +1. The time now is 11:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com