Results 1 to 2 of 2
  1. #1
    New Lounger
    Join Date
    Aug 2001
    Location
    Liverpool, UK
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Count Array elements? (Office 2K / VB )

    I have an array (to assign patterns to chart elements programatically):

    pat = Array(msoPattern5Percent, ... msoPattern80Percent, msoPattern90Percent)

    now, how do I count the elements in that array?

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Count Array elements? (Office 2K / VB )

    Use Ubound(pat) to return the index of the last element in the array.
    Charlotte

Posting Permissions

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