A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Sub Deduct()
Dim Wb As Workbook
Dim Ws As Worksheet
Dim Here As Range, Where As Range, C As Range
Set Here = ActiveCell
Set Wb = Workbooks.Open("C:\Users\furnd\Desktop\Test Deduct.xlsm")
Set Ws = Wb.Worksheets("Sheet1")
Set Where = Ws.Range("A:A")
Set C = Where.Find("A1", LookIn:=xlValues, LookAt:=xlWhole)
If C Is Nothing Then
MsgBox "Not found"
GoTo ExitPoint
End If
Here = Here - C.Offset(, 1)
ExitPoint:
Wb.Close
End Sub