+ Reply to Thread
Results 1 to 13 of 13

Show End Time in Appointments

  1. #1
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Show End Time in Appointments

    Hello,

    Can VBA show End Times in appointments at the end of the shapes?

    So the format would be:
    "Start Time" <space> "Contact" ....."End Time"

    The End Time would be at the right side of the shape.

    Thank you very much for your help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Show End Time in Appointments

    See attached

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    Thank you very much John Topley for your great help!

  4. #4
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    My fault for asking wrong format. I changed code line to make appointment (example):

    11:00a - 1:15p Fred Fedders

    This works for month of May but I tried to go to other months and it gives error. Can you check please?

    I found that this goes to error in June to December months if there are no appointments in these months.

    Further testing seems to only happen in the month of June. In fact multiple shapes are created in around column A when saving any appointments in this month.
    Attached Files Attached Files
    Last edited by AlexDog; 06-06-2025 at 02:47 PM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Show End Time in Appointments

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    Excellent! Thanks again John Topley.

    I realized the Duration should be calculated instead of the End Time so I did some rearranging of cells. This seems to make better sense.

    See attached revision
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Show End Time in Appointments

    The file has Start/End times not Start & Duration

  8. #8
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    The appointments show start and end times on the shapes. The duration is calculated in cell E18. I think this is correct. The Refresh code seems to have the correct information for each appointment.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Show End Time in Appointments

    Duration not shown in the Shapes ?

  10. #10
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    Duration is not needed in the shapes. I think the End Time is more appropriate so it is easier to see if the next appointment might conflict with the previous.

  11. #11
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    Is there anything I missed in the codes with this revision?

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Show End Time in Appointments

    I only looked at the "Schedule" code so cannot comment on any other changes: all "appears" OK to me.

  13. #13
    Registered User
    Join Date
    04-24-2025
    Location
    Peru
    MS-Off Ver
    365
    Posts
    62

    Re: Show End Time in Appointments

    Thank you for checking. I hope this workbook can provide some use to others.

+ 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. Summary of appointments in Date and Time Order
    By GrumpyOldChief in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2022, 06:57 AM
  2. How to code vba or input formula to show real time and show status compare time
    By Peer2021 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2021, 05:35 AM
  3. Getting frequency of Appointments over time as Montly, Weekly, Yearly etc
    By shoeGirl38 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-18-2019, 07:04 AM
  4. Percentage of Appointments within target at given time
    By dashet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2017, 12:44 PM
  5. Replies: 10
    Last Post: 11-08-2014, 04:51 PM
  6. [SOLVED] Looking to create a list of appointments that match a time and date
    By john dalton in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-18-2014, 05:32 AM
  7. Replies: 30
    Last Post: 11-14-2012, 09:39 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