LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Find RangeCopyInsert into Sheet

Ok I must be really slow on the understanding...

Set WS = Sheets("sheet1") '<<< Change *** This I Get ***
'A1 is the top left cell of your filter range and the header of the
first column
Set rng = WS.Range("A1").CurrentRegion '<<< Change *** I don't get what
to change ".Currentregion" to ***
Str = "Netherlands" '<<< Change *** I have no clue of what to do with
this ***

This is a synopsis of what I am trying to do...

My data starts on Cell A7

The code in A7 and every 10th cell down afterward is "=LEFT(A8,4)" Cells
B,C,D,E,& F 7 are empty but are colored. Range A8:F17 has all the important
data. My Key Cell for the search that I want to have the code look for is
Cell A9 and every tenth one after that. Below is the code that provides the
value that is displayed in Cell A9...


"=IF(RC[2]=FALSE,"""",IF(R[1]C[2]=FALSE,RC[2],IF(R[2]C[2]=FALSE,R[1]C[2],IF(R[3]C[2]=FALSE,R[2]C[2],IF(R[4]C[2]=FALSE,R[3]C[2],IF(R[5]C[2]=FALSE,R[4]C[2],IF(R[6]C[2]=FALSE,R[5]C[2],IF(R[7]C[2]=FALSE,R[6]C[2],R[7]C[2]))))))))"

Yes I made that code and it works supremely, the actual value that is
displayed in Cell A9 is a date and the date is formatted as "mm-dd-yy". Now
Cell D4 has the current day's date in it and is formatted as "dd-mmm-yyyy"


I would like to be able to search all the cells that are A9, A19, A29 etc.
on down to whatever for the value that is equal to or greater than todays
date minus three days ago. If the date in cell A99 is at least three days old
then it selects A99's related range of A97:F106. The it copies that range
into a different sheet and continues the search for any other matches. When
it's done it displayes a message that's something like MsgBox("All Done
Searching Boss",vbOK).

Well That's my long winded explaination. Anybody care to help? You would be
a god if you did.

Either way I thank you in advance, Especially if you took the time to really
read this in hopes of helping.

Thank You,
Rob



"Gord Dibben" wrote:

"more on the mark" is for certain.

Gord




On Sun, 27 Aug 2006 20:23:16 -0400, "Tom Ogilvy" wrote:

Also, to consider (same site)
http://www.rondebruin.nl/copy5.htm

might be more on the mark.


Gord Dibben MS Excel MVP



 
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
MAcro to copy and insert a sheet JackR Excel Programming 7 March 20th 06 01:07 AM
how do I find, insert in a doc, xls sheet, the symbol for PI??? bufbilt Excel Discussion (Misc queries) 1 February 4th 06 10:16 PM
Excel2000: Insert a copy of row range Arvi Laanemets Excel Programming 4 January 25th 06 02:05 PM
Find a value, then insert a row below that row and copy the contents to the new row stelllar Excel Programming 4 February 15th 05 12:29 PM
how to find and copy values on sheet 2, based on a list on sheet 1 evanmacnz Excel Programming 4 February 7th 05 08:33 PM


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