Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ikaabod, here is my progress so far and it works as expected. The only
part I need to add now is the looping of the projects in WB2. You can see, I have commented out a couple of lines that didn't work. TIA Sub CheckProjInTwo() Dim rng1 As Range Dim rng2 As Range Dim rng As Range Dim wkbk As Workbook Dim wkbk1 As Workbook Dim wkbk2 As Workbook Const sStr As String = "A2" Set wkbk = ActiveWorkbook Set wkbk1 = Workbooks("RF 340-000.xls") With wkbk.Worksheets(1) Set rng1 = .Range(.Cells(7, 1), .Cells(Rows.Count, 1).End(xlUp)) End With With wkbk1.Worksheets(1) Set rng2 = .Range(.Cells(7, 1), .Cells(Rows.Count, 1).End(xlUp)) End With With wkbk.Worksheets(1) 'For Each c In rng1.Cells With rng2 Dim rngCell As Range Set rngCell = .Find( _ what:=ActiveCell, _ lookat:=xlPart, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ SearchFormat:=False) End With If Not IsError(rngCell) Then wkbk1.Activate rngCell.Offset(0, 9).Activate Selection.ShowDetail = True ActiveSheet.Move After:=wkbk.Worksheets(wkbk.Worksheets.Count) ActiveSheet.Name = Left(Range(sStr), 6) Else MsgBox "Project not in WIP" End If End With 'Next End Sub Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
simple loop needed please | Excel Discussion (Misc queries) | |||
Add a Range to an existing Range in a loop? | Excel Programming | |||
loop code needed | Excel Programming | |||
Urgent Help needed on! Copy and Paste a Formula as Values using a Loop statement | Excel Programming | |||
help needed with timer / loop | Excel Programming |