PC Review


Reply
Thread Tools Rate Thread

Appointment time

 
 
=?Utf-8?B?VFJN?=
Guest
Posts: n/a
 
      22nd Aug 2005
I am wondering how I can set an appointment in Outlook, using VBA, which will
always have the same start time, but the date will vary.

I can get the date to set using:

objAppt.Subject = "New Hire Consult with " & strEmp
objAppt.Start = dteDate
objAppt.Save

But, when I add the time on there (I have tried several ways, including " &
"#08:00#"; or "#" & dteDate & " " & dteTime & "#", among others.) So, I can
get a 'hard coded' time/date... but the date will be recurring it depends on
the users input. ; it's okay for the time to be a standard.

Oh, and also - how can I make the calendar update immediately? I have to
exit out of Outlook once or twice before the update is made.

Hope that made sense.

Thanks!
 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      22nd Aug 2005
Am Sun, 21 Aug 2005 23:44:36 -0700 schrieb TRM:

Do you ask how to add a date *and* a time? Please try this:

Appointment.Start = Date & " 10:35:00"
Appointment.Save

This also should update your calendar immediately.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> I am wondering how I can set an appointment in Outlook, using VBA,

which will
> always have the same start time, but the date will vary.
>
> I can get the date to set using:
>
> objAppt.Subject = "New Hire Consult with " & strEmp
> objAppt.Start = dteDate
> objAppt.Save
>
> But, when I add the time on there (I have tried several ways,

including " &
> "#08:00#"; or "#" & dteDate & " " & dteTime & "#", among others.) So,

I can
> get a 'hard coded' time/date... but the date will be recurring it

depends on
> the users input. ; it's okay for the time to be a standard.
>
> Oh, and also - how can I make the calendar update immediately? I have

to
> exit out of Outlook once or twice before the update is made.
>
> Hope that made sense.
>
> Thanks!

 
Reply With Quote
 
=?Utf-8?B?VFJN?=
Guest
Posts: n/a
 
      23rd Aug 2005
So simple - thanks! I guess I hadn't tried without the number signs.


"Michael Bauer" wrote:

> Am Sun, 21 Aug 2005 23:44:36 -0700 schrieb TRM:
>
> Do you ask how to add a date *and* a time? Please try this:
>
> Appointment.Start = Date & " 10:35:00"
> Appointment.Save
>
> This also should update your calendar immediately.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
>
> > I am wondering how I can set an appointment in Outlook, using VBA,

> which will
> > always have the same start time, but the date will vary.
> >
> > I can get the date to set using:
> >
> > objAppt.Subject = "New Hire Consult with " & strEmp
> > objAppt.Start = dteDate
> > objAppt.Save
> >
> > But, when I add the time on there (I have tried several ways,

> including " &
> > "#08:00#"; or "#" & dteDate & " " & dteTime & "#", among others.) So,

> I can
> > get a 'hard coded' time/date... but the date will be recurring it

> depends on
> > the users input. ; it's okay for the time to be a standard.
> >
> > Oh, and also - how can I make the calendar update immediately? I have

> to
> > exit out of Outlook once or twice before the update is made.
> >
> > Hope that made sense.
> >
> > Thanks!

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set time interval on date/time picker when creating appointment. Fred Boer Microsoft Outlook Calendar 1 6th Oct 2009 05:34 PM
'no time' appointment switches to a timed appointment mds Microsoft Outlook Discussion 2 3rd Dec 2008 01:04 AM
Calendar appointment appearing as current time not scheduled time =?Utf-8?B?QnJhbmRv?= Microsoft Outlook Discussion 0 13th Jun 2005 04:14 PM
How to alter time zone without changing calendar appointment time. =?Utf-8?B?aHVzY2hlcg==?= Microsoft Outlook Calendar 0 4th Jan 2005 01:09 AM
Outlook agenda: Uses current time in stead of time appointment Maria Microsoft Outlook Calendar 0 21st Jul 2003 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 PM.