Creating calendar entries in outlook from VB userform/excel

philfloyduk

Board Regular
Joined
Jan 6, 2011
Messages
82
I have a repair booking form in visual basic that feeds in to an excel sheet that I would like to automatically create calendar entries in outlook. Ideally, the next free hourly slot would be taken (our repairs are put on to the day then organised in the morning). The form has a textbox that the user enters the appointment date in via calendar control 12.0. The form currently populates all the information needed from the text boxes in to a cell, copies the information then prompts the user to paste it to the Calendar.

Many thanks in advance for any help


Phil.
 
Goodness, this was nearly three years ago! Praedico's suggestion sounds sensible though. I seem to recall the original code was written for someone who was dealing only in half-hour slots.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
hi there! yes i realize this post is old but you guys did a fine job.The moment i saw the code
my eyes lit up as i think it looks like it would solve the exact problem i have :)

Praedico, that sounds like what i need. Please post the code so i can try run it. mucho gracias!
 
Upvote 0
Wazimu13,
I don't remember too much about this - after I get something working I tend to purge it from my brain and move on to the next thing. However I do have the text from a message I sent to Ruddles after I got it working.

Here it is:


I hope that helps you,
Praedico

Hi Praedico, that sounds like what i need. Please post the code so i can try run it. mucho gracias!
 
Upvote 0
hi, ive tried changing argduration to oapptitem.duration as suggested, but i still have the same problem :(
It doesn't recognize/pickup the end time of an existing appointment that was not created by this code.
thanks
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top