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: 599
Default Driving me crazy!

WL

I think you want something like this

Dim Rng As Range
Dim Cell as Range

Set Rng = Sheet1.Range("a1",Sheet1.Range("A65536").End(xlUp) )

For Each Cell In Rng.Cells
If Cell.Value = "I am stupid" Then
Cell.Copy Destination:=Sheet2.Range("A65536").End(xlUp).Offs et(1,0)
End If
Next Cell


--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"WiReLaD" wrote in message
...
Hello,
What's the best way to do this.

I've got some data on sheet1 that I want to copy to sheet2 on a click of a
button.
The data is in say A1:A4 cells. (Sometimes) It could be more or less. I

need
it to scan
through these cells and copy the data into cells on sheet2.

Ideally, Im trying to say!
If sheet1.range = "I am stupid" then
if sheet1.range "A1" "" then
range = range.copy sheet2. range ("A1")
end if
end if

I want it to scan through this range until it reaches nothing cell ""

Kinda - Do until range.cell = ""

any idea's please!

WiReLaD




 
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
Need HELP!! IF OR formula driving me crazy!!!! caz - can't use excel!! Excel Discussion (Misc queries) 8 August 13th 09 09:07 PM
Driving me CRAZY~ please help Tara New Users to Excel 0 July 7th 08 07:29 PM
Formula is driving me crazy????? Chris Watson Excel Worksheet Functions 19 February 13th 06 07:12 PM
Sorry for reposting - but this is driving me crazy! Bean123r Excel Discussion (Misc queries) 1 January 27th 06 02:31 PM
VLOOKUP driving me crazy LB79 Excel Discussion (Misc queries) 5 December 13th 05 04:14 PM


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

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"