+ Reply to Thread
Results 1 to 5 of 5

Macro running twice

  1. #1
    Registered User
    Join Date
    07-26-2017
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    3

    Macro running twice

    I have been given this bit of code which works fine to execute my Macro which sends an e-mail if a value is less than zero, however it is sending the e-mail twice. Anyone help me out?

    Please Login or Register  to view this content.
    and the macro is:

    Please Login or Register  to view this content.
    Last edited by gazclose; 07-26-2017 at 11:06 AM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Macro running twice

    Please edit previous post and enclose code in code tags - click Edit Post, select relevant text & click on # icon above

    We need sight of macro Mail_ActiveSheet
    - please post enclosed in code tags
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    07-26-2017
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro running twice

    sorry about that

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Macro running twice

    Thanks for sorting
    Unfortunately I cannot replicate your error - no duplications here
    But a quick search suggests it may be one of Microsoft's special little roulette features

    look at this thread
    and this TechNet page

  5. #5
    Registered User
    Join Date
    07-26-2017
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    3

    Re: Macro running twice

    thanks for having a try mate, had a look at those links you gave me so seems there is some kind of bug but its way over my head, tried to smash the coding together but can't get it to work haha, ah well I tried.

+ 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] Event Driven Macros stop running after running a routine macro
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2017, 12:34 PM
  2. code works running in visual basic editor but not when running from Excel macro
    By smporco in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2016, 05:44 PM
  3. [SOLVED] How to prevent worksheet code from running while Module Macro is running:
    By Chad Bateman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 09:26 AM
  4. Replies: 5
    Last Post: 12-19-2014, 01:31 AM
  5. Macro to hide/unhide cells not running or running slow
    By mbp727 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2013, 04:22 PM
  6. [SOLVED] Canceling a running macro before re running that same macro
    By Klayton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2013, 07:42 PM
  7. Prevent functions from running while macro is running
    By palpha32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2009, 08:42 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