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

Can constants be declared globally, that is to be used in
all modules? If so, where should the constant be defined?

Thanks!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Global Constants?

Hi
declare them at the beginning of one module and you can use them in
your project

--
Regards
Frank Kabel
Frankfurt, Germany

"Bob" schrieb im Newsbeitrag
...
Can constants be declared globally, that is to be used in
all modules? If so, where should the constant be defined?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Global Constants?

And don't use Dim, use Public.

Public myString As String



Frank Kabel wrote:

Hi
declare them at the beginning of one module and you can use them in
your project

--
Regards
Frank Kabel
Frankfurt, Germany

"Bob" schrieb im Newsbeitrag
...
Can constants be declared globally, that is to be used in
all modules? If so, where should the constant be defined?

Thanks!



--

Dave Peterson

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
Flagging constants [email protected] Excel Worksheet Functions 2 April 3rd 06 07:42 PM
constants Confused Excel Discussion (Misc queries) 3 December 2nd 04 05:05 PM
constants alekm Excel Programming 1 September 9th 04 12:16 PM
Color constants in VBA Mark Tangard[_3_] Excel Programming 10 July 22nd 04 11:03 PM
How to set global constants and get path of spreadsh ? wellie Excel Programming 1 July 11th 03 03:06 AM


All times are GMT +1. The time now is 07:09 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"