Getting a runtime error for the variable ws. Tried almost everything i.e. changing the variable type, using Set to declare etc... Please help!
Sub program()
    Dim var1 As String,  wb As Workbook, SVlink As String, SAlink As String, ws As Range
    Application.ScreenUpdating = False
    Application.Calculation = xlManual
    With ActiveWorkbook.ActiveSheet
        x = ActiveSheet.Shapes(Application.Caller).TopLeftCell.Address  ‘using the address of the button to
        'perform some operation
    
        var1 = Range(x).Offset(-17, 8).Address
        x = Range(x).Offset(-13, 8).Address
        y = Range(x).Offset(12, 0).Address
        Set ws = Range(x, y).find(what:="Nothing found")
    End With
    
    If ws <> "Nothing found" Then '---> ERROR!
        'some code here…..
    Else
        'some code here
End sub
 
     
    