Hi,

I am in the sheet "Line Expenses" iterating through the rows and finding an account... I then take that value and look it up in the "Payroll Entry" Sheet... when it's found, say A30, i have it move over to to Cell, for example K30... I need that location "K30" and throw that into my formula back in the
"Line Expenses" to get = "='APRIL Payroll Entry'!" & oCell1 & ""...

I am getting no where, type mismatch, object required... oh and the ocell.address never works...

Please help

John

VB Code:
  1. Set oBook = ThisWorkbook
  2.     Set oSheet = oBook.Worksheets("APRIL Line Expenses")
  3.  
  4.  For iRow = 25 To 744
  5.  
  6. '_________________________
  7.         'Column C
  8.         'Only some of the accounts on the Line expense reside in the Payroll tab
  9.         'if they do then I want the value in the payroll tab to be here
  10.     If Mid(oSheet.Cells(iRow, 1), 4, 1) = "-" Then
  11.         Set oCell = oSheet.Cells(iRow, 1)
  12.         sCell = oCell.Value
  13.  
  14.             'now that i have an account I am going to look up and see if it
  15.             'exists in this worksheet
  16.             Set oSheet1 = oBook.Worksheets("APRIL Payroll Entry")
  17.                 Set oCell1 = Cells.Find(what:=sCell, After:=ActiveCell, lookin:=xlFormulas, _
  18.                 LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
  19.                 MatchCase:=False, SearchFormat:=False)
  20.                 Set oCell2 = oCell1.Offset(0, 10)
  21.                     oCell2.Select
  22.                 Set oCell3 = oCell2.Address(RowAbsolute:=True, ColumnAbsolute:=True)
  23.                
  24. 'oCell2.AddressLocal(RowAbsolute:=False, ColumnAbsolute:=False)
  25. 'Set oCell1 = oSheet1.Range("A13", Range("A13").End(xlDown)).Find(what:=sCell, lookin:=xlValues)
  26. 'oCell1.Offset(0, 10).Address(RowAbsolute:=False, ColumnAbsolute:=False)
  27.  
  28. 'I find the account form the Line expense tab in the Payroll tab
  29. 'I want to get its address i.e. K15 and use that for the forumula
  30.                        
  31.  
  32.  
  33.         'Want column K  to be the value in Column C of the April Line Expenses
  34.         'sCell2 = oCell2.Offset(0, 10)
  35.        
  36.         'oCell.Offset(0, 2).Activate = "='APRIL Payroll Entry'!" & oCell1 & ""
  37.        
  38.     End If
  39. Next iRow