Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Select Data by Date Range, Delete Rest

Hi, Martin

I've tried... "Two rows" part and date range enrty are where I got stuck.
It's only a part of the code I'm working on. I'm already on the 11th page of
the code print-out. It was quite simple before it though. This is not my
homework :) and I am not making a living from it. I've learned more from
reading the posts than from the help file or MS tutorials. I'll try some
more... Thanks for your comment.

"Martin Fishlock" wrote:

Hi Learner,

This is quite a nice structured learning exercise and you would learn a lot
more by trying to do it first and then ask for comments.

So please try and lets see what you come up with.

--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Learner" wrote:

Dear Experts! Your suggestions are appreciated. Here's the sheet layout.

Column A contains names;
Columns B through CW (99 columns) contain dates in MM/DD/YY format;
Even rows have actual dates, uneven rows - target dates (two rows per name);
Dates are filled out unevenly, some rows may have 50 entries, some only 5,
but there are no blanks between row entries;
Target dates are calculated when the actual dates are entered, so both dates
are always present;
Number of used columns is fixed, number of used rows is not.

VBA code needed to do the following:
Promt the user to enter the start and end date;
Check actual dates (even rows) for a specified date range;
If actual date falls within the range, keep it and keep the target date
right below it;
Delete the rest and shift everything to the left;

Thank you for your help!

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 select the first character in a cell and delete the rest Helenf Excel Worksheet Functions 4 May 14th 09 12:10 PM
Select data to appear on 2nd sheet by date range... Cbreze Excel Discussion (Misc queries) 0 June 28th 07 12:10 AM
Delete data if not within date range Denise Excel Programming 1 March 7th 06 06:21 PM
Go to last row of data and delete the rest to bottom of s/sheet Tempy Excel Programming 6 April 9th 04 12:33 PM
Select certain rows of sheet & delete the rest Steve Wylie Excel Programming 2 January 9th 04 07:16 PM


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