A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

iterating an array



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 9th 08, 04:28 AM posted to microsoft.public.outlook.program_vba
Jade
external usenet poster
 
Posts: 3
Default iterating an array

Hi Everyone,

Seeking a bit of help on an issue....I'm running into a tight deadline
on a project and am stuck on how to code an array for a listbox.

Here's the issue. I have Listbox1 which contains several rows and
columns of data. When selected it distributes the values of each
column of row to several textboxes. Once the row has been selected
and the value placed in the textboxes, a lookup must be completed that
would extract from Listbox1 (or its array) each row that contains that
value in the textbox. Each row containing that value will be placed in
Listbox2. I realize it requires an iteration of the array in Listbox1
with an if..then / for ...next code structure but I'm stuck ...whether
i've been looking at this thing for too long or its lack of
sleep...I'm clearly stuck.....any help would be greatly appreciated

here's my code for listbox1:

Set rg = objXL.worksheets(1).Range("A1:d17")
Call RangeToArray(rg, arr)
Set ListBox1 = Item.GetInspector.ModifiedFormPages("pg.
2").Controls("ListBox1")
ListBox1.List = arr
End Sub

Thanks...!!!
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterating Through UserProperty Values Henry Stockbridge Outlook and VBA 2 June 22nd 08 08:35 PM
Type Mismatch when iterating through eMail-folder MailItems in Outlook 2003 [email protected] Outlook and VBA 3 October 5th 07 02:45 PM
Iterating through multiple items selected in a mailbox dch3 Outlook and VBA 2 June 8th 07 03:05 PM
Array Problems Dan Allason Outlook - Using Forms 2 February 21st 07 03:43 PM
Iterating through outloook emails c_shah Outlook and VBA 1 August 10th 06 05:49 AM


All times are GMT +1. The time now is 03:35 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.