Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2023, 08:54 AM
jkidwell jkidwell is offline VBA formula Windows 10 VBA formula Office 2021
Novice
VBA formula
 
Join Date: Jul 2023
Posts: 1
jkidwell is on a distinguished road
Default VBA formula

Hello, I have this formula for a countdown type clock (counting down to a certain date). I can get it to work and countdown, but would like to adjust the display.


(for example - 5 weeks, 16 days, 7 minutes, 45 seconds remaining.
so right now it shows
5 Weeks 16:07:45

But I would like it to displa:
5 Weeks 16 Hours 7 Minutes 45 Seconds

here is the formula I am using- I just do not have enough VBA experience to update the formula and get my commas, parenthesis, etc in the correct space.

ActivePresentation.Slides(1).Shapes("Countdown").T extFrame.TextRange = DateDiff("ww", Now(), time) & " Weeks " & Format((time - Now()), "hh:mm:ss")

Thank you for any help you can offer!
Jennifer
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula YTD Christianu Excel 2 12-03-2020 11:39 PM
Formula Copy Row 2 Row But Next Column In Formula From Another Tab TimG Excel 3 04-16-2018 09:20 PM
VBA formula Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula innkeeper9 Excel 2 09-13-2016 08:59 PM
Need help with dragging a formula and changing a reference column as I drag the formula. LupeB Excel 1 10-22-2015 03:02 PM
VBA formula Help with formula please. AndrewSE Excel 3 04-05-2011 08:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft