PC Review


Reply
Thread Tools Rate Thread

Delete a cell when found

 
 
=?Utf-8?B?cmlja3NnbWE=?=
Guest
Posts: n/a
 
      9th Aug 2007
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.

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Aug 2007
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
 
Reply With Quote
 
=?Utf-8?B?cmlja3NnbWE=?=
Guest
Posts: n/a
 
      9th Aug 2007
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
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      9th Aug 2007
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 With Quote
 
=?Utf-8?B?cmlja3NnbWE=?=
Guest
Posts: n/a
 
      10th Aug 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Delete a specified value IF found in cell in ANY Sheets in a WorkBook Gary Keramidas Microsoft Excel Programming 2 1st Apr 2008 08:54 AM
Delete value if found in cell. Sinner Microsoft Excel Programming 11 25th Mar 2008 10:00 PM
How to delete values of a cell if it is found in another coloumn karty Microsoft Excel Worksheet Functions 3 22nd Oct 2005 04:29 PM
Cascading Delete...#Delete found in table...what the heck is going on! Andre Laplume via AccessMonster.com Microsoft Access Queries 6 2nd Jun 2005 06:26 PM
is it safe to delete Found.000,Found.001,Found.002,... (newbie) Sting Microsoft Windows 2000 4 16th Jan 2004 03:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:00 PM.