+ Reply to Thread
Results 1 to 4 of 4

Scripting.Dictionary error if list is either empty or have less than 2 items

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

    Scripting.Dictionary error if list is either empty or have less than 2 items

    Hi

    with reference to the thread here:https://www.excelforum.com/excel-pro...ml#post4859438

    if I have only 1 item in the list or the list is empty then there is "Runtime error 13, Type mismatch" .It does not highlight any line of the code but it produces error on the red line
    Please Login or Register  to view this content.
    Any chance we can start from a blank list as the list will be taken from the field directly.

    Help would be greatly appreciated

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Scripting.Dictionary error if list is either empty or have less than 2 items

    Please Login or Register  to view this content.

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

    Re: Scripting.Dictionary error if list is either empty or have less than 2 items

    Hi sir jindon
    It solved the problem upto 50 % as the rest of the problem is if there is only one item in the list. The searchable dropdown does not brings up that lonely item in dropdown list.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Scripting.Dictionary error if list is either empty or have less than 2 items

    It should...........

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Scripting.Dictionary Code Late Binding Error
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-20-2015, 03:06 AM
  2. [SOLVED] Scripting Dictionary Type mismatch Run-Time error 13
    By Seve in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2014, 03:47 AM
  3. Scripting.Dictionary .. Error
    By ks1102 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2014, 06:08 AM
  4. [SOLVED] Problems retrieving keys as well as items when using scripting dictionary
    By strud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-09-2013, 05:31 AM
  5. [SOLVED] Add multiple items to scripting dictionary from one key and keep structure
    By strud in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-07-2013, 09:44 AM
  6. Create array with distinct items using scripting.dictionary
    By icyrius in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-06-2013, 04:36 PM
  7. [SOLVED] Scripting Dictionary add additional items
    By thisisgerald in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-15-2012, 07:32 AM

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