+ Reply to Thread
Results 1 to 6 of 6

Time Macro Problem

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Time Macro Problem

    I need to alter the below so that if cells M = "1" and the current time on my PC is after 12:00:00 then continue with the macro, else do nothing.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Time Macro Problem

    Hi,
    Try

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Time Macro Problem

    Perfect Richard.

  4. #4
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Time Macro Problem

    One last thing actually.

    How would I alter it so that it only runs if Time is between 12 noon and 3pm?

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Time Macro Problem

    Nevermind, have it. And Time < x

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Time Macro Problem

    My pleasure and 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. Problem with Macro Only Running one cell at a time
    By boogyman00123 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-26-2014, 02:56 PM
  2. [SOLVED] Macro with Problem to Sum Time, but If I use =value+value+value works..
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-30-2012, 04:39 PM
  3. Problem with run time error 91 in macro
    By JFWeir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2011, 11:03 AM
  4. Problem with Vlookup macro - Run Time Error '1004'
    By obc1126 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-09-2008, 09:56 PM
  5. [SOLVED] template macro executing problem the 2nd time
    By MAB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2006, 08:10 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