+ Reply to Thread
Results 1 to 4 of 4

lookup function for combobox change event code

  1. #1
    Registered User
    Join Date
    09-28-2019
    Location
    India
    MS-Off Ver
    MS office 2007
    Posts
    31

    lookup function for combobox change event code

    hello everyone,
    I am having combobox in worksheet.
    when the value in combobox is selected, it simultaneously triggers the change event which will change the value of some cells in worksheet.
    I have the following code in combobox change event.
    Please Login or Register  to view this content.
    the above code works fine...
    but when any other workbook is open..parallely ... it GIVES "RUN TIME ERROR-9" "SCRIPT OUT OF RANGE"

    DON'T KNOW WHAT TO DO.. TRIED VARIOUS OPTIONS... BUT NOT GETTING ANY WAY OUT THIS..

    ANY HELP WILL BE APPRECIATED.
    THANK YOU IN ADVANCE

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: lookup function for combobox change event code

    For starters.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    09-28-2019
    Location
    India
    MS-Off Ver
    MS office 2007
    Posts
    31

    Re: lookup function for combobox change event code

    Thank you bakerman2
    that worked perfectly..

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: lookup function for combobox change event code

    Glad to help and thanks for feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. How to simplify Multiple ComboBox Change Event code
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2016, 05:00 AM
  2. How to get Combobox change event to execute
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2015, 05:58 AM
  3. Combobox change event
    By buhwheet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2015, 10:39 AM
  4. Change event for comboBox
    By cmpcwil2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2006, 10:01 AM
  5. [SOLVED] Combobox change event issue
    By Excelerate-nl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2006, 08:10 AM
  6. [SOLVED] Combobox change event only by UI
    By Excelerate-nl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2006, 11:10 AM
  7. MsgBox in Enter event causes combobox not to run Change event
    By Richard in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-06-2006, 10:55 AM

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