Results 1 to 3 of 3

Thread: Problem with Listbox using VB6 in Excel 2007

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2011
    Posts
    1

    Wink Problem with Listbox using VB6 in Excel 2007

    Dear colleagues, I have decided to write to you because I have been trying all morning and can not find an explanation.

    I created a VB6 form through Excel 2007, with connection to an Oracle DB. Depending on how you start filling out the form works better or worse. I mean, if you first start selecting items from listboxes and after filling the content of other textboxes,it never gives problems. but if I do the opposite, ie, filling first the textboxes and then going to certain listboxes to select some of its elements, the form does not allow me to select any as if they were disabled. The issue is that it seems somewhat random, and that only happens sometimes, and if I change my Excel sheet and return to the original, most times the Listbox elements can be finally selected (there's no code implied in switching pages).

    I do not think that is a code problem, because in no timeI manipulate the Enabled property of the ListBox, I do not know whether this will be a performance issue (there are many form elements) and if it has some simple solution. Any idea that may be of help will be greatly appreciated.

    Regards,



    Hector

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Problem with Listbox using VB6 in Excel 2007

    Welcome to VBForums

    Thread moved to the 'Office Development/VBA' forum... note that while it certainly isn't made clear, the "VB Editor" in Office programs is actually VBA rather than VB, so the 'VB6' forum is not really apt

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Problem with Listbox using VB6 in Excel 2007

    Welcome to teh Forums.

    Have you tried to create a test local db and have a copy of the data in it. Connect to it and see how that goes? Or you could, depending upon the db and data, place the data in a text file locally.

    If it behaves the same then perhaps some trace file writting is needed or at least try breakpoints
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

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



Click Here to Expand Forum to Full Width