If I am working on two work books simultaneously 
for E.g. "1.xlsb" and "2. xlsb" 
I am running macro on "1.xlsb" and simultaneoulsy i work on "2.xlsb"
in "1.xlsb" in macro there is a statement 
ThisWorkbook.ActiveSheet
Now the Problem is when i am running macro and go for another workbook in "2.xlsb" so in "1.xlsb" it can't Access ThisWorkBook.ActiveSheet so what can i do for this so i can work also on another workbook and macro is running in background in another workbook
Public Function GetBWTableInActiveSheet() As BoardwalkTable
    Dim ws As Worksheet
    Dim bwtResult As BoardwalkTable
    Set bwtResult = Nothing
    Set ws = ThisWorkbook.ActiveSheet
    For Each bwtResult In BoardwalkAPI.GetBoardwalkTables
        If StrComp(bwtResult.getrange.Parent.name, ws.name, vbTextCompare) = 0 Then
            Exit For
        End If
    Next bwtResult
    Set GetBWTableInActiveSheet = bwtResult
    Debug.Print bwtResult.getName
End Function
 
    