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

Can I get Outlook to prompt when dates in Excel files become curre



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 7th 07, 03:56 PM posted to microsoft.public.outlook.program_vba
sue2uk
external usenet poster
 
Posts: 2
Default Can I get Outlook to prompt when dates in Excel files become curre

Can I get Outlook to prompt when dates in Excel files become current? This
was my original question on the Excel discussion group:
"I have a couple of rental properties abroad and have a simple Excel
spreadsheet with details of the booking, client, deposit paid, date balance
due etc. Is there any way that this can be linked to Outlook as a task or in
the calendar to alert me on the due date to remind me to chase the client for
payment of their balance?"
It was suggested that I look for a VBA solution - is this something I can do
myself, learn quickly, where do I start, any suggestions? (I did some
programming briefly about 20 years ago!!!!)
Ads
  #2  
Old November 9th 07, 06:59 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Can I get Outlook to prompt when dates in Excel files become curre



If you open the workbook to enter or change data then I'd probably do the
programming within Excel, not Outlook. It's easier then to start the code.

This gives you a reference to a single cell (A1) in the active worksheet:

Dim Ws as Excel.Worksheet
Dim Rn as Excel.Range

Set Ws=ActiveSheet
Set Rn=Ws.Range("a1")

Rn.Value gives you the cell's content.

Look at the Range.Offset function for how to move to another cell.

if you are able to read the data, you're ready to create an Outlook item.
Add a reference to Outlook via Tools/References.

Assuming that Outlook is already running, this creates a new appointment:

Dim OL as Outlook.Application
Dim Appt as Outlook.AppointmentItem

Set OL=GetObject(,"Outlook.Application")
Set Appt=OL.CreateItem(olAppointmentItem)

Please use the object brwoser again and see what properties are exposed by
the AppointmentItem. Probably you'll need at least the Subject, StartDate
and Reminder* properties.

Don't forget to call Appt.Save eventually.

These are just a few basics. In excel, you will need at least a new column
that tells you what entries are already added to Outlook. Additionally, if
it's possible that a date changes then you will also need more code to find
the corresponding appointment in Outlook.

So, no - that's not done quickly.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 7 Nov 2007 07:56:07 -0800 schrieb sue2uk:

Can I get Outlook to prompt when dates in Excel files become current? This
was my original question on the Excel discussion group:
"I have a couple of rental properties abroad and have a simple Excel
spreadsheet with details of the booking, client, deposit paid, date

balance
due etc. Is there any way that this can be linked to Outlook as a task or

in
the calendar to alert me on the due date to remind me to chase the client

for
payment of their balance?"
It was suggested that I look for a VBA solution - is this something I can

do
myself, learn quickly, where do I start, any suggestions? (I did some
programming briefly about 20 years ago!!!!)

  #3  
Old November 9th 07, 10:26 AM posted to microsoft.public.outlook.program_vba
sue2uk
external usenet poster
 
Posts: 2
Default Can I get Outlook to prompt when dates in Excel files become c

Thank you Michael. I will have a look at this. Thank you very much for your
time.

"Michael Bauer [MVP - Outlook]" wrote:



If you open the workbook to enter or change data then I'd probably do the
programming within Excel, not Outlook. It's easier then to start the code.

This gives you a reference to a single cell (A1) in the active worksheet:

Dim Ws as Excel.Worksheet
Dim Rn as Excel.Range

Set Ws=ActiveSheet
Set Rn=Ws.Range("a1")

Rn.Value gives you the cell's content.

Look at the Range.Offset function for how to move to another cell.

if you are able to read the data, you're ready to create an Outlook item.
Add a reference to Outlook via Tools/References.

Assuming that Outlook is already running, this creates a new appointment:

Dim OL as Outlook.Application
Dim Appt as Outlook.AppointmentItem

Set OL=GetObject(,"Outlook.Application")
Set Appt=OL.CreateItem(olAppointmentItem)

Please use the object brwoser again and see what properties are exposed by
the AppointmentItem. Probably you'll need at least the Subject, StartDate
and Reminder* properties.

Don't forget to call Appt.Save eventually.

These are just a few basics. In excel, you will need at least a new column
that tells you what entries are already added to Outlook. Additionally, if
it's possible that a date changes then you will also need more code to find
the corresponding appointment in Outlook.

So, no - that's not done quickly.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Synchronize Color Categories & Ensure that Every Item Gets Categorized:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Wed, 7 Nov 2007 07:56:07 -0800 schrieb sue2uk:

Can I get Outlook to prompt when dates in Excel files become current? This
was my original question on the Excel discussion group:
"I have a couple of rental properties abroad and have a simple Excel
spreadsheet with details of the booking, client, deposit paid, date

balance
due etc. Is there any way that this can be linked to Outlook as a task or

in
the calendar to alert me on the due date to remind me to chase the client

for
payment of their balance?"
It was suggested that I look for a VBA solution - is this something I can

do
myself, learn quickly, where do I start, any suggestions? (I did some
programming briefly about 20 years ago!!!!)


 




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
Exporting Outlook Mail Dates to Excel Todd Walton Outlook - General Queries 1 October 19th 07 02:11 PM
can I import a list of dates from excel into my calendar? moncibouy Outlook - Calandaring 2 July 10th 07 01:04 PM
Linking Excel Dates with Outlook Calendar KK Outlook - Calandaring 1 October 30th 06 03:39 PM
how do i import dates from an excel column to outlook calendar KYM Outlook - Calandaring 1 July 7th 06 03:40 AM
Export Calendar from outlook to Excel with Dates in columns Andreb Outlook - Calandaring 1 March 21st 06 07:14 PM


All times are GMT +1. The time now is 03:00 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.