• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Use one Start and End time for all Outlook Appointments

Slipstick Systems

› Developer › Use one Start and End time for all Outlook Appointments

Last reviewed on July 11, 2013     12 Comments

Applies to: Outlook 2007, Outlook 2010

To create a custom form that has a preset start and end time, you need to open the form in design mode, add a little VBScript then publish the form. You can then either set the form as your default appointment form or select it from the New Items menu.

To use the form, select a date in the calendar and click the New button.

To create the form:

  1. Open a new Outlook Appointment form
  2. If the Developer ribbon is not visible, go to File, Options customize Ribbon and add a check to enable the Developer ribbon
  3. On the developer ribbon, click Design This Form
  4. click the ViewCode button to open the Script editorClick View Code button to open the Script Editor. (It looks like Notepad.)
  5. Paste the Script into the editor window and close the editor.
  6. Test the form by clicking the Run This Form button
  7. Publish it by clicking Publish
  8. Enter a name for the form.
  9. Close the form and return to Outlook

To set the form as the default for the folder, right click on the folder and choose Properties. Select the form from the 'When posting, use form' dialog.


Function Item_Open ()

Dim SelCalendarDate
SelCalendarDate = DateValue(Item.Start)
Item.Start = SelCalendarDate &" "& TimeValue("8:00 AM")
Item.End =   SelCalendarDate & " "& TimeValue("6:00 PM")

End Function

Use one Start and End time for all Outlook Appointments was last modified: July 11th, 2013 by Diane Poremsky

Related Posts:

  • Tips for Customizing Outlook Appointment Forms
  • How to Show Appointments as "Free" by Default
  • Designing Custom Outlook Forms
  • Meeting Location Warning Message

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
12 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Usef (@guest_206013)
April 22, 2017 6:01 pm
#206013

Diane, Thank you so much it worked like a charm
I want to fix the "Date" along with time because as soon as I run the form, the date will be set to today's date.

Can the code be updated to fix the date as well?

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Usef
April 23, 2017 8:36 am
#206018

This: Item.Start = SelCalendarDate & " " & TimeValue("8:00 AM") should set it for the selected date. If you are opening it from another module (lik the inbox) and want to use a predefined date, like tomorrow or 3 days from now, use Item.Start = date + 3 & " " & TimeValue("8:00 AM")

0
0
Reply
Heather (@guest_196691)
February 24, 2016 9:50 am
#196691

Diane, this macro worked for changing the default time of an all day event, but it did not pin it to the top of the calendar like it would in an all day event. Is there a fix for this?

0
0
Reply
Diane Poremsky (@guest_181269)
January 13, 2014 1:06 pm
#181269

For whatever reason, the other code is failing. I updated the code so it checks to see if the new item is an appointment and exits if it's not an appointments.

0
0
Reply
Jason burds (@guest_178212)
July 16, 2013 6:43 am
#178212

Run-time error '438: Object doesn't support this property or method.

When I click debug is has "If TypeName(m_Inspector.CurrentItem) = "AppointmentItem" And _
m_Inspector.CurrentItem.AllDayEvent Then" highlighted.

0
0
Reply
Diane Poremsky (@guest_178228)
Reply to  Jason burds
July 16, 2013 7:33 pm
#178228

did you put the code in custom form or in the VB Editor? It belongs in a custom appointment form. A ready to use form is here - https://www.dropbox.com/s/1k79k4c6y68ntg9/always8-6.oft - you'll need to publish it since it has code in it.

0
0
Reply
Jason burds (@guest_178156)
July 12, 2013 6:37 am
#178156

When I do this code, I also get an error when I make a new Email.
If TypeName(m_Inspector.CurrentItem) = "AppointmentItem" And _
m_Inspector.CurrentItem.AllDayEvent Then

is from your other script to add reminders to all day events.

I think its from changing my default Appointment form.

0
0
Reply
Diane Poremsky (@guest_178202)
Reply to  Jason burds
July 15, 2013 2:27 pm
#178202

What does the error say?

0
0
Reply
Diane Poremsky (@guest_178140)
July 11, 2013 3:49 pm
#178140

The code was messed up -it should have & and " instead of the html code for those characters. I fixed it. Sorry about that.

0
0
Reply
Jason burds (@guest_178138)
July 11, 2013 3:23 pm
#178138

When I try to do this I get a "Expected end of Statement Line No:5" when I try to run this.

Any ideas?

Thanks!

0
0
Reply
Denise Stewart (@guest_177634)
June 13, 2013 12:27 pm
#177634

Thanks for the information it helped a little, but can you tell me why I can't modify the fields of the Appointment form in Design Form mode. If I choose the Contacts form I am able to modify the fields. My goal is to add additional fields to the like (Event Type and Recruiter to the New Appointment Form.

0
0
Reply
Diane Poremsky (@guest_177635)
Reply to  Denise Stewart
June 13, 2013 1:17 pm
#177635

for whatever reason, they designed the appointment form with the first page static. You can hide that page and create a new one on P.2 with all of the fields or add the fields you need on p.2 and use 2 pages.

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 19

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment