Consulting

Results 1 to 2 of 2

Thread: VBA : Populate list

  1. #1
    VBAX Regular
    Joined
    Apr 2009
    Posts
    51
    Location

    VBA : Populate list

    Hi,

    Problem:
    Require to create a list of "global outlook contacts" in Column A for given "inhouse staff member" in Column B.

    I cannot figure out how to loop through each "global outlook contact" and assign to an "inhouse staff member".

    See attachment.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    Sub Example()
    Dim aryNames
    Dim i As Long

    aryNames = Split(Range("AE3"), ";")
    For i = LBound(aryNames) To UBound(aryNames)

    MsgBox (aryNames(i))
    Next i
    End Sub
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •