LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default find date and copy selection

Hi! Im trying to use the VBA Find function to use a date entered on
Sheet1!A1 to locate a date on Sheet2. Once I find the date, I want to copy a
range located above the date. For example, in the setup below, on Sheet1!A1,
the date entered would be 24-Jan-06 and I would want to select 16-Jan-06 thru
22-Jan-06. If this info helps, the date on Sheet1 would always be a Tuesday
and I would only want to select the previous weeks data, beginning on Monday
and ending on Sunday. Also, I dont want to select the entire row, but a
range of columns that wont change, ie it would always be A:K. And,
unfortunately, I would only want to find the first instance of 24-Jan-06 as
there is a possibility of a second occurrence of the date in Sheet2. If
anyone out there has any insights to share, it would be appreciated!

16-Jan-06 174.7 100
17-Jan-06 405.2 1191
18-Jan-06 92 72.5
19-Jan-06 209.45 173
20-Jan-06 262.95 238
21-Jan-06 0 0
22-Jan-06 0 0
23-Jan-06 155.75 84.5
24-Jan-06 175.7 75.5

 
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
Find matching date in another worksheet, copy and paste data Shoney Excel Discussion (Misc queries) 1 November 8th 07 11:45 PM
Copy Selection - Transpose Selection - Delete Selection Uninvisible Excel Discussion (Misc queries) 2 October 23rd 07 04:18 PM
Macro to find matching date and copy values to another sheet Tiger Excel Discussion (Misc queries) 3 August 13th 07 01:45 PM
selection.find help! Duncan[_5_] Excel Programming 7 January 18th 06 09:07 AM
Find date and copy range based on that date avzundert Excel Programming 2 November 25th 04 10:31 AM


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