Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Create a Private Const Array in excel 2000
Hi,
Just wondering if it is possible to create a private constant array of type string in excel 2000. I want this constant string array to sit at the top of my module and be used in the subs that follow. Regards, Tom |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Create a Private Const Array in excel 2000
This is as close as I can come. It doesn't appear to be very efficient...
'-- Option Explicit Private Const sNames As String = "Larry,Moe,Curly" Sub Demo() MsgBox Split(sNames, ",")(1) 'returns Moe End Sub -- Jim Cone Portland, Oregon USA wrote in message Hi, Just wondering if it is possible to create a private constant array of type string in excel 2000. I want this constant string array to sit at the top of my module and be used in the subs that follow. Regards, Tom |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Create a Private Const Array in excel 2000
On May 22, 1:19*pm, "Jim Cone" wrote:
This is as close as I can come. *It doesn't appear to be very efficient.... '-- Option Explicit Private Const sNames As String = "Larry,Moe,Curly" Sub Demo() * MsgBox Split(sNames, ",")(1) 'returns Moe End Sub -- Jim Cone Portland, Oregon *USA wrote in message Hi, Just wondering if it is possible to create a private constant array of type string in excel 2000. I want this constant string array to sit at the top of my module and be used in the subs that follow. Regards, Tom Perfect - thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Improve method of calling a private function in a private module | Excel Programming | |||
Const Array | Excel Programming | |||
excel 2000 - array formulas | Excel Worksheet Functions | |||
Create macro to download access 2000 table to excel 2000 spreadsheet | Excel Programming | |||
crash changing const to public const | Excel Programming |