+ Reply to Thread
Results 1 to 8 of 8

reproduce code by array & fixing unspecified error

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    reproduce code by array & fixing unspecified error

    hello
    I need help to fixing this unspecified error

    when I run the userform shows data based on last entered date and when I try searching for item based on column B by using textbox will populate unspecified error in this line
    Please Login or Register  to view this content.
    and if it's possible reintroduce the code by array to make decreasing code slowness if the data are huge.
    Please Login or Register  to view this content.
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Question Re: reproduce code by array & fixing unspecified error


    Hello,

    and if you move this codeline one line down ? …

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,309

    Re: reproduce code by array & fixing unspecified error

    Give this a go...Start typing in textbox..

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 05-28-2022 at 07:42 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: reproduce code by array & fixing unspecified error

    @Marc L i don't understand you

  5. #5
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: reproduce code by array & fixing unspecified error

    @sintek thanks , but just I want the code for textbox1 . I want keeping the code on Private Sub UserForm_Initialize() without any change
    I try using the original code for Private Sub UserForm_Initialize() , but gives compile error variable not defined in this word CntLatestDt for this line
    Please Login or Register  to view this content.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,309

    Re: reproduce code by array & fixing unspecified error

    Ok, I see you only want latest date in listbox...
    This solves...
    Attached Files Attached Files
    Last edited by sintek; 05-28-2022 at 08:55 AM.

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: reproduce code by array & fixing unspecified error

    much appreciated ! thanks for your solution

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,309

    Re: reproduce code by array & fixing unspecified error

    I could easily have just fixed yours but you would have run into issues down the line...
    Pleasure...Glad I could assist...Post 6 file has been updated with simplification...
    Last edited by sintek; 05-28-2022 at 08:56 AM.

+ 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] fixing "unspecified error"populate data in listbox based on textbox search
    By Mussa-A in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-18-2021, 10:32 AM
  2. [SOLVED] Code Unspecified Error
    By oskar44 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2015, 01:02 PM
  3. Code needs fixing because an Error message regarding sorting comes up on opening wb
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2012, 06:20 AM
  4. Unspecified Error
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2010, 05:12 PM
  5. Unspecified Automation Error
    By _Yoyo in forum Excel General
    Replies: 1
    Last Post: 05-23-2005, 04:06 PM
  6. [SOLVED] Unspecified Automation Error
    By _Yoyo in forum Excel General
    Replies: 0
    Last Post: 05-20-2005, 06:06 PM
  7. Can anyone reproduce my Chart error? Is this an Excel BUG?
    By Philip_plf in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-14-2005, 02:06 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