Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Declaration of public variable - Question

Hi, i am sure a simple answer, but if i declare a public variable in the
first or "Start module", does that surfice for the whole project or must
one declare it in each module?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Declaration of public variable - Question

a public variable declared in a general module should be visible throughout
the workbook/project. Declaring it anywhere else will hide it in the
location where it is declared again.

(this assumes the module is public, but that is the default).

--
Regards,
Tom Ogilvy


"Les Stout" wrote in message
...
Hi, i am sure a simple answer, but if i declare a public variable in the
first or "Start module", does that surfice for the whole project or must
one declare it in each module?

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Declaration of public variable - Question

Thanks Tom

Les Stout

*** Sent via Developersdex http://www.developersdex.com ***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA - variable declaration Jeff Excel Discussion (Misc queries) 3 January 9th 08 12:45 PM
Public declaration Greg[_16_] Excel Programming 2 January 21st 05 10:53 PM
External Variable Declaration ehntd[_3_] Excel Programming 1 October 29th 04 11:57 AM
public declaration kevin Excel Programming 1 December 6th 03 07:00 PM
Variable Declaration?? Tom Ogilvy Excel Programming 1 August 8th 03 06:45 PM


All times are GMT +1. The time now is 06:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"