View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
kiat kiat is offline
external usenet poster
 
Posts: 34
Default Scope of variable includes all Form _and_ Code modules??

Yes, it's possible. Simply declare them variables in a module using Public
keyword, Public p_i As Long, Public p_Const As String = "This is a string."


"John Wirt" wrote in message
...
Is it possible to declare a public variable so that it is within scope for
all Form and Code modules?

Thanks.

John Wirt