View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben McBen Ben McBen is offline
external usenet poster
 
Posts: 56
Default 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