+ Reply to Thread
Results 1 to 4 of 4

Populate Array then Display in MsgBox

  1. #1
    Forum Contributor
    Join Date
    07-23-2006
    Posts
    185

    Populate Array then Display in MsgBox

    I need to populate an array then put the array info into a MsgBox.

    This is what I have so far, but it's got problems. I need help getting this to work.
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    You haven't dimensioned your array hence it isn't working. Is Expiration_Dates a single column range? If so this should work:

    Please Login or Register  to view this content.
    You may well want to tweak the output as I wasn't sure what your last loop was meant to be doing.

    Richard

  3. #3
    Forum Contributor
    Join Date
    07-23-2006
    Posts
    185
    Thanks Richard,

    In the last loop I was just trying to get the data from the array into a variable to display in the MsgBox.

    I seem to be having some error with the code you gave me, ie.
    Please Login or Register  to view this content.
    I get the error variable required, can't assign to this expression

    My spelling fix didn't help.

    Thanks.

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Oops - my fault for not testing it. Try this:

    Please Login or Register  to view this content.
    Richard

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1