I have a clock macro and a countdown timer macro and want to run them together on the same powerpoint slide.

Johnsalmiya 0 Reputation points
2023-02-22T11:43:48.49+00:00

I have the two macros as desribed in the title. I tried the Runall macro posted a while ago; but I can only have the clock or the timer running.

PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
250 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,694 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alan Farias 750 Reputation points
    2023-02-24T15:55:52.6133333+00:00

    It sounds like there may be a conflict between the two macros you have. One possible solution is to modify the macros to work together or create a new macro that incorporates both functions. Here's an example of how you could modify the macros to work together:

    Sub StartClockAndTimer()
    'Starts the clock
    StartClock
    'Starts the timer
    StartTimer
    End Sub
    
    Sub StartClock()
    'Code to start the clock
    End Sub
    
    Sub StartTimer()
    'Code to start the timer
    End Sub
    

    By creating a new macro that calls both StartClock and StartTimer, you should be able to run both functions simultaneously.

    Another option is to add a conditional statement to each macro that checks whether the other macro is running. If so, it could pause or stop the other macro before starting itself. This approach would require more complex code, but it would allow you to have both macros available to run separately.

    If you're still having trouble getting both macros to work together, it might be helpful to share the code for each macro so we can better understand what's going on.