View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
joeu2004 joeu2004 is offline
external usenet poster
 
Posts: 2,059
Default How to display value of global variable?

I have a global variable in a module, outside any procedure, declared as:

Private cnt as Long

In the Immediate Window, I tried the command:

print cnt

to no avail. If I change Private to Public, the print command works. But I
want it to be Private.

FYI, the variable cnt is incremented by some procedures.