object variable or with block variable not set mean
Yo are redifining ThsWrkBk with local scope, and this will take precedence
over the one you defined in your declarations. Dont (re)dim it in the proc.
"Rick" wrote:
What does object variable or with block variable not set
really mean?
I have the statement coded as thus:
This part declared in declarations:
Public ThsWrkBk As Workbook
This part executed in a Public Static procedu
Dim ThsWrkBk
Set ThsWrkBk = ActiveWorkbook
This part executed in a Public procedure using
Public PostPymnt(ThsWrkBk, ShtNme)
ThsWrkBk.Active
|