+ Reply to Thread
Results 1 to 4 of 4

Combo Box (Form Control) not refreshing on "Workbook_Open"

  1. #1
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Combo Box (Form Control) not refreshing on "Workbook_Open"

    I have this code which assigns a macro to a drop down on workbook open.
    Drop down is a Combo Box (Form Control) from the Developer tab.
    When I open the workbook, the drop down should say "Select Section".
    If I remove the line "Worksheets(1).Select" it works. But I need this line.
    Is there any way to make it work with this included?

    THIS WORKBOOK
    Please Login or Register  to view this content.
    MODULE
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Combo Box (Form Control) not refreshing on "Workbook_Open"

    Hi there,

    See if the following version of your "DropDownAssign" routine does what you need:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    549

    Re: Combo Box (Form Control) not refreshing on "Workbook_Open"

    Hi, thanks this seems to work.

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Combo Box (Form Control) not refreshing on "Workbook_Open"

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Regards,

    Greg M

+ 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] Refreshing Combo Boxes on a Form when the Form gets" the focus"
    By Michael D in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2014, 10:05 AM
  2. [SOLVED] Difference between "Form" & "Active X" Combo Box
    By batchy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2014, 11:18 AM
  3. Replies: 0
    Last Post: 03-21-2014, 09:58 AM
  4. Replies: 4
    Last Post: 09-23-2013, 02:43 PM
  5. [SOLVED] Stock control user form "database" in Excel 2007
    By ghurhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2012, 06:07 AM
  6. [SOLVED] Format Form Control Text Box with "Time"
    By Oksana in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-14-2012, 04:27 PM
  7. Replies: 0
    Last Post: 02-15-2005, 06:45 PM

Tags for this Thread

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