+ Reply to Thread
Results 1 to 4 of 4

workbook change events not working together

  1. #1
    Registered User
    Join Date
    10-22-2014
    Location
    Birmingham UK
    MS-Off Ver
    Various
    Posts
    55

    workbook change events not working together

    Hi

    I have these which work perfect apart but when i try and get them to work together they loop and crash

    It should be doing the following:
    When a user selects a cell it expands to the column width 33.
    then applies the data validation list using the named "Schemes"

    The reason for the dose is the expansion of the column is really nice and the data validation is to compensate for if a user merges then unmerges a cell it repopulates the data validation

    any ideas?
    code is below
    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: workbook change events not working together

    If you select a range in the Change event handler, the Selection Change event handler will fire. You have to stop it doing that.

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-22-2014
    Location
    Birmingham UK
    MS-Off Ver
    Various
    Posts
    55

    Re: workbook change events not working together

    Thanks but i still cannot get it to work correctly

    Did i place it in the right place?

    Please Login or Register  to view this content.


    Quote Originally Posted by TMS View Post
    If you select a range in the Change event handler, the Selection Change event handler will fire. You have to stop it doing that.

    Please Login or Register  to view this content.

    Regards, TMS

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: workbook change events not working together

    No, you have to put it around the actual selection, as I have done, not the comment

    But thanks for the rep.

+ 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] Workbook events not working correctly.
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2014, 10:41 PM
  2. [SOLVED] Excel Events not Working
    By boss1982 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2013, 04:38 AM
  3. Worksheet Events Not Working Consistenly
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-08-2009, 05:57 AM
  4. Worksheet Events Not Working Consistenly
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2009, 07:34 AM
  5. [SOLVED] Worksheet Events Not Working
    By Dyl in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-18-2005, 12:20 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