Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default A constant array?

Can this be made valid in VBA:

Const wsNot2Process = Array("Summary", "GraphResults", "*backup")

Or do I have to assign the array to a non-constant array variable?

--
|
+-- Thief_
|


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default A constant array?

It looks like your choices are...

1. Const wsNot2Process1 As String = "Summary"
Const wsNot2Process2 As String = "GraphResults"
Const wsNot2Process3 As String = "*backup"

2. Dim wsNot2Process As Variant
wsNot2Process = Array("Summary", "GraphResults", "*backup")

Jim Cone
San Francisco, USA


"Thief_" wrote in message
...
Can this be made valid in VBA:
Const wsNot2Process = Array("Summary", "GraphResults", "*backup")
Or do I have to assign the array to a non-constant array variable?
+-- Thief_


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default A constant array?

Thanks Jim.

--
|
+-- Thief_
|

"Jim Cone" wrote in message
...
It looks like your choices are...

1. Const wsNot2Process1 As String = "Summary"
Const wsNot2Process2 As String = "GraphResults"
Const wsNot2Process3 As String = "*backup"

2. Dim wsNot2Process As Variant
wsNot2Process = Array("Summary", "GraphResults", "*backup")

Jim Cone
San Francisco, USA


"Thief_" wrote in message
...
Can this be made valid in VBA:
Const wsNot2Process = Array("Summary", "GraphResults", "*backup")
Or do I have to assign the array to a non-constant array variable?
+-- Thief_




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default A constant array?

alternative
store the constant as a delimieted string,
create the array with split function

const x = "Summary;Graphresults;Backup"

....
msgbox split(x,";")(0)




--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Jim Cone wrote :

It looks like your choices are...

1. Const wsNot2Process1 As String = "Summary"
Const wsNot2Process2 As String = "GraphResults"
Const wsNot2Process3 As String = "*backup"

2. Dim wsNot2Process As Variant
wsNot2Process = Array("Summary", "GraphResults", "*backup")

Jim Cone
San Francisco, USA


"Thief_" wrote in message
...
Can this be made valid in VBA:
Const wsNot2Process = Array("Summary", "GraphResults",
"*backup") Or do I have to assign the array to a non-constant
array variable? +-- Thief_

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
Array Constant? SayWhatAuto Excel Discussion (Misc queries) 2 December 30th 06 02:24 PM
Array formula with a constant? Tester Excel Worksheet Functions 4 October 31st 06 10:44 PM
array formula with constant name Excel Worksheet Functions 2 May 24th 06 05:14 PM
Array constant issue Sige Excel Worksheet Functions 16 March 16th 06 02:56 PM
constant array Sam Excel Programming 4 May 8th 04 02:56 AM


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