Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Declaring array constants at module level

Hi all,

I have a group of constants which are stored in a single array. This array
is to be accessed by all subroutines and functions within the same module.
Is it possible to declare an array and assign values within it in the module
level? The following seems doesn't work:

Const PublicArray = Array(1,2,3)

Please advise.

Frederick Chow
Hong Kong.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Declaring array constants at module level

To the best of my knowledge, you can not have a constant array.

--
Regards,
Tom Ogilvy

"Microsoft Forum" wrote in message
...
Hi all,

I have a group of constants which are stored in a single array. This array
is to be accessed by all subroutines and functions within the same module.
Is it possible to declare an array and assign values within it in the

module
level? The following seems doesn't work:

Const PublicArray = Array(1,2,3)

Please advise.

Frederick Chow
Hong Kong.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Declaring array constants at module level

Thanks a lot.

Frederick Chow
"Tom Ogilvy" wrote in message
...
To the best of my knowledge, you can not have a constant array.

--
Regards,
Tom Ogilvy

"Microsoft Forum" wrote in message
...
Hi all,

I have a group of constants which are stored in a single array. This
array
is to be accessed by all subroutines and functions within the same
module.
Is it possible to declare an array and assign values within it in the

module
level? The following seems doesn't work:

Const PublicArray = Array(1,2,3)

Please advise.

Frederick Chow
Hong Kong.






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
Declaring variables in Module vs. Public Jeff Excel Discussion (Misc queries) 5 November 19th 07 08:27 PM
declaring constants from the sheet? robert burger Excel Programming 4 August 25th 04 06:47 PM
Declaring one bidimensinal Array Andoni[_17_] Excel Programming 2 August 21st 04 02:03 AM
referencing at module level Mark[_36_] Excel Programming 1 March 1st 04 01:24 PM
module-level variable lifetime Jessie[_2_] Excel Programming 0 July 30th 03 09:31 PM


All times are GMT +1. The time now is 07:57 PM.

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"