LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy and Find macro help please.


if you have a workbook with five sheets as follows

sheet1 = all open sales
sheet2 = "Alan"
sheet3 = "Dan"
Sheet4 = "Jim"
Sheet5="Walter"

You create a loop


Sub test()

x = lastRowpub(1, Worksheets("Sheet1"))

For i = Worksheets(2) To Worksheets.Count

For Each cell In Range("c2:c200")
If cell.Value = "Open" Then
cell.EntireRow.Copy
Worksheets("sheet1").Range("a" & x).PasteSpecial Paste:=xlValues
x = x + 1
End If
Next
Next

End Su

--
funkymonkU
-----------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813
View this thread: http://www.excelforum.com/showthread.php?threadid=55598

 
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
Please help - Find & copy Macro Damil4real Excel Worksheet Functions 1 May 7th 09 02:30 PM
Find and Copy down macro Barry McConnell Excel Discussion (Misc queries) 4 July 1st 08 08:00 AM
FIND-COPY DIFFERENT WORDS WITH MACRO Spiros Excel Discussion (Misc queries) 1 September 27th 07 11:43 AM
Find and copy in macro Tom Ogilvy Excel Programming 1 February 19th 04 10:46 PM
Help with find then copy macro john_t_h[_4_] Excel Programming 5 January 13th 04 11:48 PM


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