+ Reply to Thread
Results 1 to 4 of 4

Multiple Worksheet_Change requests - Unable to get requests working simultaneously

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Multiple Worksheet_Change requests - Unable to get requests working simultaneously

    Hi,

    I'm a bit of a VBA newbie and I was wondering if there was anybody that could look at my code and tell me where I'm going wrong please? (it's probably something very simple but I just can't see it). Basically I have 2 (and soon to be 3) worksheet change requests but all based on different column targets. I if I did 'With Target' and 'End With' that this would separate the 2 pieces of code and just go to the next one. Both pieces of code work brilliantly but not when they are together - only one or the other works. Could anybody help please? Many thanks in advance!


    Please Login or Register  to view this content.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Multiple Worksheet_Change requests - Unable to get requests working simultaneously

    Hi,

    Your Exit Sub is the problem. Use
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,880

    Re: Multiple Worksheet_Change requests - Unable to get requests working simultaneously

    The main issue is your exit sub line.
    Please Login or Register  to view this content.
    So if you are working on column 7, before it gets to that line of code, code will exit and skip the rest.

    Instead, try using something like Case Select Target.Column..

    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    08-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Multiple Worksheet_Change requests - Unable to get requests working simultaneously

    Thank you xlnitwit and CK76 for your prompt responses, your help is very much appreciated! Both work perfectly. Thanks again.

+ 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. VBA Loop thru Multiple URLs and Running HTML Requests
    By theskyscraper1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-20-2016, 08:33 PM
  2. Sorting multiple requests for SLA
    By awsachsen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2014, 06:24 PM
  3. Sorting multiple columns/requests to find number of days
    By awsachsen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2014, 05:50 PM
  4. Sending meeting requests through Lotus notes using Excel Macros attachment not working
    By praveen2825 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2013, 10:33 AM
  5. Macro to send multiple meeting requests using outlook from excel
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 10-31-2010, 09:31 AM
  6. Multiple programming requests in Excel 2003
    By Jflour in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2009, 12:41 AM
  7. Most Common Requests
    By ChemistB in forum The Water Cooler
    Replies: 1
    Last Post: 02-03-2009, 07:08 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