Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy Data to a new sheet

Select your data,
Do Data=Filter=Autofilter

in the dropdown for the column that contains the date, select custom,
then select Greater than or equal to, then enter the date for the criteria

Only the rows meeting the criteria will be visible.

Select all the data, do edit=Copy
mover to the new sheet and do select A4, then do edit =Paste

Only the visible rows will be copied in xl97 and later.

If you need code, turn on the macro recorder while you do this. Then adjust
the code to make the criteria 7 days later than the current date and
otherwise modify it to meet your needs.

You turn off the data filter by doing Data=Filter=Autofilter (which acts
as a toggle).

--
Regards,
Tom Ogilvy


"MrAlMackay" wrote in message
...
Is it possible to run a macro that will do the following:
1) Copy all rows where the date is = 7 days less than today

2) Paste in a new sheet on row 4, sheet called "Completed Dates in week".

Appreciate your help on this.

Many Thanks, Al Mackay

( )



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
copy rows from one Data sheet to another sheet based on cell conte John McKeon Excel Discussion (Misc queries) 2 May 15th 10 06:49 AM
copy data of two cells from Sheet 2 into one cell in Sheet 1 cahabbinga Excel Worksheet Functions 6 January 30th 08 01:00 PM
Copy/filter data in a sheet from another sheet Sheikh Saadi Excel Discussion (Misc queries) 1 November 22nd 07 08:28 AM
How can i copy data from a tabbed working sheet to a summary sheet StephenF Excel Discussion (Misc queries) 1 March 15th 07 03:40 PM
how to copy a cell with formula from sheet 1 (data is all vertical) into sheet 2 parag Excel Worksheet Functions 3 June 15th 06 10:29 PM


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

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

About Us

"It's about Microsoft Excel"