I have tried pastespecial also it gave me an object error. This value = value is giving me an object variable error for no set on row1. When I create a fictitious range in the set row the macro stops with some built in function when it opens the file. I am lost! Any help would be greatly appreciated.
Code:
Sub Update_Log_Status()
Dim wrkbk1 As Workbook
Dim sht1 As Worksheet
Dim row1 As Range
'Path to closed file
Const filePath1 As String = "J:\Manual PO's\Manual PO Log\Manual PO Log.xlsx"
'Stop updating the screen
Application.ScreenUpdating = False
'
'Open the workbook
Set wrkbk1 = Workbooks.Open(filePath1)
'Grab the first sheet in wrkbk
Set sht1 = wrkbk1.Sheets(1)
Set row1 = ActiveSheet.Rows
'Find value in B21 of active worksheet in colum D of closed workbook
row1 = sht1.Range("D:D").Find(Range("B21").Value, , xlValues, xlWhole).row
sht1.Cells(row1, 10).Value = "A"
'Close workbook & save
wrkbk1.Close True
'Set the screen to update
Application.ScreenUpdating = True
End Sub