A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Scan / Update Uncompleted Tasks



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 21st 09, 09:23 PM posted to microsoft.public.outlook.program_vba
KitCaz
external usenet poster
 
Posts: 5
Default Scan / Update Uncompleted Tasks

Hi there!

I'm having an issue with my phone and it's interface with my tasks, it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not being
compromised).

I've Googled myself silly but all the code snippets I find are a shade too
fragmented for me to plug them in. Anyone have a VBA bone they can throw me?

Chris
Ads
  #2  
Old September 22nd 09, 06:34 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Scan / Update Uncompleted Tasks



Your function must be called from the Application_Startup event, which is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default task
folder. The returned folder object has an Items collection, through which
you can loop. Then for each TaskItem object set its ReminderTime =DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks, it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my

non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not being
compromised).

I've Googled myself silly but all the code snippets I find are a shade too
fragmented for me to plug them in. Anyone have a VBA bone they can throw

me?

Chris

  #3  
Old September 22nd 09, 04:43 PM posted to microsoft.public.outlook.program_vba
KitCaz
external usenet poster
 
Posts: 5
Default Scan / Update Uncompleted Tasks

Michael, thank you.

So I opened Outlook, pressed F11 to reveal the VB, expanded Microsoft Office
Outlook, selected ThisOutlookSession, then created this sub, just to see if I
was on the right track, saved, closed OL, and reopened, but didn't see any
msg box. What am I doing wrong?:

Private Sub Application_Startup()

Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace

MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Your function must be called from the Application_Startup event, which is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default task
folder. The returned folder object has an Items collection, through which
you can loop. Then for each TaskItem object set its ReminderTime =DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks, it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my

non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not being
compromised).

I've Googled myself silly but all the code snippets I find are a shade too
fragmented for me to plug them in. Anyone have a VBA bone they can throw

me?

Chris


  #4  
Old September 22nd 09, 05:57 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Scan / Update Uncompleted Tasks



Don't create a new instance of Outlook as it is already running, instead use
the available Application object. Then, you have forgotten to set the olns
variable to anything. This should work:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
set olns=Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 22 Sep 2009 08:43:02 -0700 schrieb KitCaz:

Michael, thank you.

So I opened Outlook, pressed F11 to reveal the VB, expanded Microsoft

Office
Outlook, selected ThisOutlookSession, then created this sub, just to see

if I
was on the right track, saved, closed OL, and reopened, but didn't see any
msg box. What am I doing wrong?:

Private Sub Application_Startup()

Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace

MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Your function must be called from the Application_Startup event, which is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default task
folder. The returned folder object has an Items collection, through which
you can loop. Then for each TaskItem object set its ReminderTime

=DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks, it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably

good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my

non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not being
compromised).

I've Googled myself silly but all the code snippets I find are a shade

too
fragmented for me to plug them in. Anyone have a VBA bone they can

throw
me?

Chris


  #5  
Old September 28th 09, 03:49 PM posted to microsoft.public.outlook.program_vba
KitCaz
external usenet poster
 
Posts: 5
Default Scan / Update Uncompleted Tasks

Thanks in advance for your patience. So if I applied the change you
mentioned, why don't I get a msgbox pop up on startup? This is what I have:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
Set olns = Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Don't create a new instance of Outlook as it is already running, instead use
the available Application object. Then, you have forgotten to set the olns
variable to anything. This should work:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
set olns=Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 22 Sep 2009 08:43:02 -0700 schrieb KitCaz:

Michael, thank you.

So I opened Outlook, pressed F11 to reveal the VB, expanded Microsoft

Office
Outlook, selected ThisOutlookSession, then created this sub, just to see

if I
was on the right track, saved, closed OL, and reopened, but didn't see any
msg box. What am I doing wrong?:

Private Sub Application_Startup()

Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace

MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Your function must be called from the Application_Startup event, which is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default task
folder. The returned folder object has an Items collection, through which
you can loop. Then for each TaskItem object set its ReminderTime

=DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks, it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably

good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my
non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not being
compromised).

I've Googled myself silly but all the code snippets I find are a shade

too
fragmented for me to plug them in. Anyone have a VBA bone they can

throw
me?

Chris


  #6  
Old September 28th 09, 05:55 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Scan / Update Uncompleted Tasks



Check your security settings, probably VBA isn't running at all:
Tools/Macros/Security.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 28 Sep 2009 07:49:01 -0700 schrieb KitCaz:

Thanks in advance for your patience. So if I applied the change you
mentioned, why don't I get a msgbox pop up on startup? This is what I

have:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
Set olns = Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Don't create a new instance of Outlook as it is already running, instead

use
the available Application object. Then, you have forgotten to set the

olns
variable to anything. This should work:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
set olns=Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 22 Sep 2009 08:43:02 -0700 schrieb KitCaz:

Michael, thank you.

So I opened Outlook, pressed F11 to reveal the VB, expanded Microsoft

Office
Outlook, selected ThisOutlookSession, then created this sub, just to see

if I
was on the right track, saved, closed OL, and reopened, but didn't see

any
msg box. What am I doing wrong?:

Private Sub Application_Startup()

Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace

MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Your function must be called from the Application_Startup event, which

is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default

task
folder. The returned folder object has an Items collection, through

which
you can loop. Then for each TaskItem object set its ReminderTime

=DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks,

it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably

good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my
non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not

being
compromised).

I've Googled myself silly but all the code snippets I find are a shade

too
fragmented for me to plug them in. Anyone have a VBA bone they can

throw
me?

Chris


  #7  
Old September 29th 09, 06:01 PM posted to microsoft.public.outlook.program_vba
KitCaz
external usenet poster
 
Posts: 5
Default Scan / Update Uncompleted Tasks

OK, this helps. My setting was "warning for signed macros, all unsigned
macros are disabled". I changed it to "No security check..." and it worked.
We have an institution-level macro that runs on Send, but I guess it's
"signed".

I'll keep plugging along! Thanks in advance for future answers .

"Michael Bauer [MVP - Outlook]" wrote:



Check your security settings, probably VBA isn't running at all:
Tools/Macros/Security.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 28 Sep 2009 07:49:01 -0700 schrieb KitCaz:

Thanks in advance for your patience. So if I applied the change you
mentioned, why don't I get a msgbox pop up on startup? This is what I

have:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
Set olns = Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Don't create a new instance of Outlook as it is already running, instead

use
the available Application object. Then, you have forgotten to set the

olns
variable to anything. This should work:

Private Sub Application_Startup()

Dim olns As Outlook.NameSpace
set olns=Application.Session
MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 22 Sep 2009 08:43:02 -0700 schrieb KitCaz:

Michael, thank you.

So I opened Outlook, pressed F11 to reveal the VB, expanded Microsoft
Office
Outlook, selected ThisOutlookSession, then created this sub, just to see
if I
was on the right track, saved, closed OL, and reopened, but didn't see

any
msg box. What am I doing wrong?:

Private Sub Application_Startup()

Dim ol As New Outlook.Application
Dim olns As Outlook.NameSpace

MsgBox olns.GetDefaultFolder(olFolderTasks).Name

End Sub


"Michael Bauer [MVP - Outlook]" wrote:



Your function must be called from the Application_Startup event, which

is
called by Outlook at startup.

See the GetDefaultFolder function to get a reference to your default

task
folder. The returned folder object has an Items collection, through

which
you can loop. Then for each TaskItem object set its ReminderTime
=DueDate,
and ReminderSet=True, then call Save.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Mon, 21 Sep 2009 13:23:01 -0700 schrieb KitCaz:

Hi there!

I'm having an issue with my phone and it's interface with my tasks,

it's
deleting my reminders.

So until that's resolved I want to stop the bleeding. I'm reasonably
good
at VBA in Access but not Outlook, so I need a little help. My goal:

On opening Outlook, I'd like a VBA procedure to scan all of my
non-completed
Tasks, updating the Reminder Date from the Due Date (Due Date not

being
compromised).

I've Googled myself silly but all the code snippets I find are a shade
too
fragmented for me to plug them in. Anyone have a VBA bone they can
throw
me?

Chris



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exchange scan add in Mike Entec Outlook - General Queries 6 November 11th 09 08:42 PM
Old saw about e-mail: to scan or not to scan Dori A Schmetterling Outlook Express 8 August 7th 09 01:22 AM
Sorting tasks by calculated field - automatically update task-fiel BMunk Outlook and VBA 9 March 13th 09 10:28 AM
Scan Pst Log? its_my_dime Outlook - General Queries 1 November 10th 08 05:09 PM
OL 2003 Problems with assigned tasks since update [email protected] Outlook - General Queries 1 June 15th 06 02:50 PM


All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.