Having issues setting Outlook reminders from excel userform

tbollenbach

New Member
Joined
Sep 19, 2013
Messages
7
I am using multiple userforms to gather info. I'm not using any worksheets.

I have a command button that creates an outlook task reminder that tells me what I need to close at a set time and date, 3 days from the time it was created, and it work great except I need it to not set any tasks on the weekend.

I'm thinking I need to set it for a 5 day work week , so a task created on friday will not count sat and sun as part of the 3 days.


Private Sub CommandButton1_Click()
Dim OLApp As Outlook.Application
Dim OLTk As Outlook.TaskItem
Set OLApp = New Outlook.Application
Set OLTk = OLApp.CreateItem(olTaskItem)

With CreateObject("Outlook.Application").CreateItem(3)
.Subject = "Test Subject"
.StartDate = Now
.DueDate = Now + 3
.ReminderTime = Now + 3
.Body = "This is a Test"
.ReminderSet = True
.Save
MsgBox "An Outlook Reminder Has been set"
End With
End Sub




I did not make this, I found it and adjusted it to work for what I need it to do....

any help would be appreciated
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,216,103
Messages
6,128,854
Members
449,472
Latest member
ebc9

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