Hello All,
I am using the following to set a worksheet variable
Later I try to use it:
I get run time error: Object variable or With block variable not set. This one I do not understand at all. I set the variables as above and then try to use them in the procedure called Save_Case all in the same module...is it perhaps something to do with using ThisWorkbook?
I am using the following to set a worksheet variable
Code:
Public thisBook As Workbook
Public thisSheet As Worksheet
Set thisBook = ThisWorkbook
Set thisSheet = thisBook.Worksheets("Data Input")
Call Save_Case
Later I try to use it:
Code:
Dim testval As Integer
testval = thisSheet.Range("Q376").Value