Results 1 to 15 of 15

Type mismatch while loading 2D array to Listbox

Threaded View

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Type mismatch while loading 2D array to Listbox

    Hi
    In the attached sample I have a userform frmEmailValidation.
    with the form loaded and in the click event of lbStatistics I would like to load the array myList into lbValidationLog listbox but while doing so I am getting an error "Type mismatch" and the following line of code gets highlighted

    Me.lbValidationLog.List = Application.Transpose(myList())
    I also tried it like this
    Me.lbValidationLog.List = Application.Transpose(myLis)
    and
    Me.lbValidationLog.List =myList or Me.lbValidationLog.List = myList() (other combination as well)

    Help would be greatly appreciated

    Best Regards
    Imran Bhatti
    Attached Files Attached Files
    Teach me Excel VBA

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. listbox runtime error 13 type mismatch
    By aprildu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2015, 02:27 AM
  2. [SOLVED] Type Mismatch when selecting items from a listbox
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-07-2012, 04:46 PM
  3. [SOLVED] Type Mismatch: array or user defined type expected
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 10:45 AM
  4. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2005, 01:54 AM
  5. Array problem: Key words-Variant Array, single-element, type mismatch error
    By davidm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 12:30 AM
  6. Help: Compile error: type mismatch: array or user defined type expected
    By lvcha.gouqizi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2005, 05:05 PM
  7. Reload Listbox - type mismatch error
    By Stu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2005, 09:05 PM

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