Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Is this possible?

Delete all rows between two certain dates when asked? If the user was asked
what dates, they entered 4/1990 to 5/2001, it would delete all row that did
not meet this criteria?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Is this possible?

Try using an input box to ask for the start date another input box to ask
for the stop date a for/each macro to delete the rows. Untested
x=inputbox("start date?")
y=inputbox("stop date?")
for each c in selection
if c<x and cy then c.entirerow.delete
next


--
Don Guillett
SalesAid Software

"Bardo" wrote in message
...
Delete all rows between two certain dates when asked? If the user was

asked
what dates, they entered 4/1990 to 5/2001, it would delete all row that

did
not meet this criteria?




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



All times are GMT +1. The time now is 09:28 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"