ListBox with Array

  • Thread starter Thread starter Kevin Mayer
  • Start date Start date
K

Kevin Mayer

Hi everyone

My name is Kevin and I'm a novice at Outlook VBS. I have done some
scripting in Access but I dont seem to have ahandle on this problem. My
dilema is this...

I have custom form that has 10 text boxes that need to be popoulated. I
have created a listbox ans scripted it to be populated with an array (which
works just fine). Next to each textbox I have a commandbutton to invoke the
listbox but short of having to script the array into each on click event is
there a way that I can pass the array from one function to the commandbutton
function. Any help in passing arguments to and from the functions in VBS
would be appreciated.

In advance thanks for your patience and help.

Kevin
 
Next to each textbox I have a commandbutton to invoke the
listbox but short of having to script the array into each on click event is
there a way that I can pass the array from one function to the commandbutton
function. Any help in passing arguments to and from the functions in VBS
would be appreciated.
If you define the array globally, ie, dim it in the code before any routine
call, it will be available to any function or subroutine.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 
Back
Top