This link should tell you a lot of things.
As for your question, let's elaborate what tigeravatar commented.
If you set your workbook like this:
Set Wbk = Activeworkbook
And your worksheet like this:
Set Sht = Activeworkbook.Sheets("Sheet1")
These 2 variables becomes independent of each other.
As what tigeravatar said, you cannot chain variables like that.
Or simply put, that violates the Excel Object Hierarchy.
There are times though that you need to use variables in reference to another object.
You can try this to access Sht
through Wbk
:
If Wbk.Sheets(Sht.Name).Cells(Rw, 1) <> "" Then
Or if you want to access the workbook using Sht
:
Sht.Parent.Sheets("Sheet1").Cells(Rw, 1) <> ""
Or something like this:
Sht.Parent.Parent.Worksbooks(Wbk.Name).Sheets(Sht.Name).Cells(Rw, 1) <> ""