Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Please help - Find & copy Macro | Excel Worksheet Functions | |||
Find and Copy down macro | Excel Discussion (Misc queries) | |||
FIND-COPY DIFFERENT WORDS WITH MACRO | Excel Discussion (Misc queries) | |||
Find and copy in macro | Excel Programming | |||
Help with find then copy macro | Excel Programming |