+ Reply to Thread
Results 1 to 3 of 3

problem with combo boxes

  1. #1
    Registered User
    Join Date
    10-15-2008
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    93

    problem with combo boxes

    Hi All

    Firstly, question regarding combo boxes... which one should I use: the Form version or the Active X one? (I'm using Excel 2007, but I want the file to be compatible with the 2003 version, and am working in Compatibility mode).

    All I want is to happen is that depending on which option a user selects from the drop down box (a total of 10 options), a select number of rows and columns should be hidden/visible (as you'll see from the below code..)

    The other issue I'm having is that with the below code, the workbook seems to be very "busy" constantly calculating something or the other. I need the Sub to be run ONLY when a user changes a selection in the combo box, but it appears that every few seconds the workbook will be calculating something.

    Finally, I introduced the GoTo Endo line after every option (1 to 10) to try and speed up the Sub when a user makes a selection, but this appears to make no differnce - it still takes forever to run the Sub.

    I am not an experienced programmer at all, so please feel free to criticise my methods altogether!!

    Thanks

    Please Login or Register  to view this content.
    Last edited by sunilmulay; 05-17-2009 at 03:47 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: problem with combo boxes

    Before you go any further, if you want a program to be compatible with an earlier version you should develop in the earliest version. You will probably have to make some slight changes according to the version with 2007.

    I generally use the Controls Toolbox activeX controls.

    It migh help to see an example workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-15-2008
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: problem with combo boxes

    Thanks Roy for your reply.

    i started to prepare a slimmed down workbook to post on the forum, deleting all the unnecessary code and sheets and what I found is that the problem went away. So it appears that the problem may actually be coming from another sheet.....

    I'm going to try and find out the source of the problem and get back to you. I can't post the whole workbook - there are too many sheets and code.

    I'll back soon.

    Thanks
    Sunil

+ 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