+ Reply to Thread
Results 1 to 3 of 3

how to automatically update sql results in ActiveX Combobox each time the xlms is opened

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    how to automatically update sql results in ActiveX Combobox each time the xlms is opened

    Hi,

    I have a macro file here (attached in this thread) where it contains the 'Generate' button, 'Clear' button and an ActiveX Combo box.

    The source data for the combo box is pulling from the SQL database.

    Each time when I open the macro file, the combo box does not show any results. I need to enable the Developer tab from the Excel ribbon > enter Design mode > double-click on the combo box to bring up the VBA code screen > Run Sub/UserForm (F5) in order to refresh the data set. After doing this sequence, the data will appear in the ActiveX Combo box.

    Is there any way to automatically display the data inside ActiveX Combo box once the macro file is opened?

    Appreciate if anyone can assist. Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: how to automatically update sql results in ActiveX Combobox each time the xlms is open

    I had upload the screen shot here.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: how to automatically update sql results in ActiveX Combobox each time the xlms is open

    Please...need help urgently

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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