+ Reply to Thread
Results 1 to 4 of 4

How do you combine these TWO "Worksheet_Change" Call Macros into one?

  1. #1
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    How do you combine these TWO "Worksheet_Change" Call Macros into one?

    Can you combine multiple worksheet change events based on independant cell changes. I've included the two macros below which I need to combine into one:


    Please Login or Register  to view this content.
    Also the second part doesn't work correctly;

    Please Login or Register  to view this content.
    What am i doing wrong? I just need to Call the Macro when Cell F4 = "00:00:05"

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: How do you combine these TWO "Worksheet_Change" Call Macros into one?

    Assuming you only want to paste if cell F4 changes:
    Please Login or Register  to view this content.
    If you're changing cells, set Application.EnableEvents = False to avoid processing a second change event.
    Last edited by leelnich; 02-28-2018 at 03:34 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Contributor
    Join Date
    02-09-2016
    Location
    West Midlands
    MS-Off Ver
    2016
    Posts
    224

    Re: How do you combine these TWO "Worksheet_Change" Call Macros into one?

    Thanks for your reply!

    Ok, so first parting working correctly. Second part doesn't. In Cell F4 it is a formula which gives me a countdown. Im guessing because its a formula and NOT a entered change it wont run the PASTE_VALUES macro? How can i get that to work?

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: How do you combine these TWO "Worksheet_Change" Call Macros into one?

    What events cause the formula to count down? Maybe you can respond to those. Perhaps the Worksheet_Calculate event would work. Alternatively, if you want Excel to call a macro at a set time (or after a set interval), use Application.OnTime.

+ 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] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. Need to call upon "workbook" & "sheetname" from cell
    By DuncanKeenen in forum Excel General
    Replies: 2
    Last Post: 10-21-2016, 04:36 AM
  3. [QUESTION/HELP-VBA/MACROS]Auto Edit Link from "Sheet1" to "Sheet2"
    By iphone3g in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-24-2016, 02:49 AM
  4. [SOLVED] Combine "=IF" and "=HOUR" statement for cell formula
    By chriswhite1982 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2013, 02:42 PM
  5. compare two excel sheets using macros and display the result in "true" or "false"
    By gayunana01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 07:21 AM
  6. Call a sub statement in "Personal Macro Workbook" from "ThisWorkbo
    By QC Coug in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2005, 03:05 PM
  7. combine "category labels" & "values" in legend
    By danielo in forum Excel General
    Replies: 4
    Last Post: 02-08-2005, 10:06 PM

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