Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-19-2021, 12:22 AM
Shelley Lou Shelley Lou is offline VBA Help with Time am/pm Format Windows 10 VBA Help with Time am/pm Format Office 2016
Expert
VBA Help with Time am/pm Format
 
Join Date: Dec 2020
Posts: 259
Shelley Lou is on a distinguished road
Default VBA Help with Time am/pm format

Hi Andrew, many thanks for updating the code much appreciated, I nearly got there but not quite! Have just run it and all working great. I forgot to add a few steps to convert e.g. 8am/5pm to 8:00am/5:00pm and the variations as below to include capital AM/PM :

Change 8am or 5pm to 8:00am or 5:00pm
Change 8 am or 5 pm to 8:00am or 5:00pm
Change 8a.m. or 5p.m. to 8:00am or 5:00pm
Change 8 a.m. or 5 p.m. to 8:00am or 5:00pm

How can I add these to the current macro?
Much appreciated, Shelley
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Format number for time , hh:mm:ss,,,second appears 00 yoshi Excel 4 04-26-2021 03:11 AM
VBA Help with Time am/pm Format How to set the table cells as time format? jiaron_1230 Word VBA 3 11-15-2016 05:15 AM
VBA Help with Time am/pm Format Changing Date/time to Australia format tmeck63 Project 1 01-07-2016 09:11 PM
time in minute format orajesh Excel 3 12-15-2015 12:56 AM
Changing format of time data Sammael Excel 2 04-08-2012 12:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:43 PM.


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