|
-
Aug 11th, 2011, 10:38 AM
#1
Thread Starter
New Member
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
-
Aug 11th, 2011, 10:51 AM
#2
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
-
Aug 11th, 2011, 11:25 AM
#3
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|