Maybe...
Option Explicit
Sub testme()
Dim wks As Worksheet
Dim DestCell As Range
Dim VarWks As Worksheet
Dim iCtr As Long
Dim FoundCell As Range
Dim WhatToFind As String
Dim FirstAddress As String
WhatToFind = "variance"
Set VarWks = Worksheets("Variance")
Set DestCell = VarWks.Range("a10")
For iCtr = 3 To Worksheets.Count
Set wks = Worksheets(iCtr)
With wks
If .Name <> VarWks.Name Then
FirstAddress = ""
With .Range("a:a")
Set FoundCell = .Find(what:=WhatToFind, _
after:=.Cells(.Cells.Count), _
LookIn:=xlValues, _
lookat:=xlWhole, _
searchorder:=xlByRows, _
searchdirection:=xlNext, _
MatchCase:=False)
If FoundCell Is Nothing Then
'do nothing
Else
FirstAddress = FoundCell.Address
Do
DestCell.Value = FoundCell.Offset(0, 2).Value
Set DestCell = DestCell.Offset(1, 0)
Set FoundCell = .FindNext(after:=FoundCell)
If FoundCell.Address = FirstAddress Then
Exit Do
End If
Loop
End If
End With
End If
End With
Next iCtr
End Sub
STEVEB wrote:
>
> Does anyone have any suggestions for the following:
>
> Beginning with the third sheet in the workbook I would like:
>
> If any Cell in Column A = "Variance" (for all sheets in workbook)
> Then:
>
> Copy the Cell in Colum "C" (in the same row as the text "Variance" in
> Column A) to :
> Column A beginning with Row 10 in the Sheet named Variance in the
> workbook.
>
> Any help would be greatly appreciated!
>
> --
> STEVEB
> ------------------------------------------------------------------------
> STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872
> View this thread: http://www.excelforum.com/showthread...hreadid=506572
--
Dave Peterson
Bookmarks