ListBox with Array

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
 
H

Hollis D. Paul

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top