Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
AL AL is offline
external usenet poster
 
Posts: 37
Default Global module

Hi all
I need to define:
Public RunWhen As Double
and Public Const cRunIntervalSeconds = 120 '2 minutes
in a Global module. How is that done? Could not find any
info in the help.
Many thanks
Al
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Global module

A global module? I think this is just a standard module that doesn't have
Option Private Module specified (and by default it doesn't)

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Al" wrote in message
...
Hi all
I need to define:
Public RunWhen As Double
and Public Const cRunIntervalSeconds = 120 '2 minutes
in a Global module. How is that done? Could not find any
info in the help.
Many thanks
Al



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Global module

Hi Al
A Public variable declared outside a sub at the top of any normal code
module is available to all other modules.
regards
Paul

"Al" wrote in message ...
Hi all
I need to define:
Public RunWhen As Double
and Public Const cRunIntervalSeconds = 120 '2 minutes
in a Global module. How is that done? Could not find any
info in the help.
Many thanks
Al

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
global changes Eclaires Excel Worksheet Functions 2 March 17th 08 01:03 PM
CLASS MODULE & SIMPLE MODULE FARAZ QURESHI Excel Discussion (Misc queries) 1 September 7th 07 09:32 AM
code in module A to not execute a Worksheet_SelectionChange sub of another module Jack Sons Excel Discussion (Misc queries) 4 December 11th 05 11:52 PM
arrays - module to module mike Excel Programming 3 February 25th 04 08:56 PM
Variable from a sheet module in a class module in XL XP hglamy[_2_] Excel Programming 2 October 14th 03 05:48 PM


All times are GMT +1. The time now is 01:45 AM.

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

About Us

"It's about Microsoft Excel"