Das ist nicht zu schwer sein sollte. Sie müssen jedoch die Namen der Arbeitsmappe und des Arbeitsblatts ausfüllen, damit sie ordnungsgemäß funktioniert.
Sub searchMacro()
Dim wb1 As Workbook, wb2 As Workbook, ws1 As Worksheet, ws2 As Worksheet
Dim srch As String
Dim col As Range, pstCell As Range, sRng As Range
'Identify workbooks
Set wb1 = Workbooks("workbook to search IDs Name")
Set wb2 = Workbooks("workbook to paste cell name")
'Identify worksheets
Set ws1 = wb1.Sheets("Sheet to search IDs Name")
Set ws2 = wb2.Sheets("Sheet to paste cell name")
'Input which Quote to search for. This is a pop-up windows for the user to input the value into
srch = InputBox("Input Quote ID:", "Search ID")
'Search Column
Set col = ws1.Columns("A")
'Paste Cell
Set pstCell = ws2.Range("B67")
'Search the column for the ID
Set sRng = col.Find(srch)
If Not sRng Is Nothing Then
'Quote ID was found
sRng.Offset(0, 1).Copy pstCell
Else
'Quote ID was not found
MsgBox "Quote ID " & srch & " was not found", vbCritical, "Not found"
End If
End Sub
Ich hoffe, dass für Sie arbeitet
'Kopieren der gesamten Zeile statt der benachbarten cell', so dass Sie es nicht ändern können, um nur eine Zelle ?? – findwindow