Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Outlook attachments

Each Monday I run a VBA generated office inventory report in Excel. Each
employee's inventory is output to a separate worksheet tabbed with his or
her name. The VBA code includes a procedure that attaches each employee's
report to an Outlook e-mail. I've been running this program successfully
for a while now. Occasionally I attach a second file to everyones' report
when I consider it strategic or desirable to disseminate information that
way.

My question is this: I want to know if it's possible to force the
recipients of the e-mailed reports to open one file first. For example, if
the e-mail includes two attached files named ABC.xls and XYZ.doc and I want
each employee to open the XYZ file first, is there a way to programmatically
generate an error message denying access to the ABC file until the XYZ has
been opened?


Frederick Lorca





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Outlook attachments

When the file that you want to open first , I would automatically generate a
temp file either in the users My Document directory or in the temporary IE
directory. The 2nd file should automatically check to see if the temp file
exists and generate an error message if it doesn't. Include the date and
timestamp in the temp filename.

"Frederick Lorca" wrote:

Each Monday I run a VBA generated office inventory report in Excel. Each
employee's inventory is output to a separate worksheet tabbed with his or
her name. The VBA code includes a procedure that attaches each employee's
report to an Outlook e-mail. I've been running this program successfully
for a while now. Occasionally I attach a second file to everyones' report
when I consider it strategic or desirable to disseminate information that
way.

My question is this: I want to know if it's possible to force the
recipients of the e-mailed reports to open one file first. For example, if
the e-mail includes two attached files named ABC.xls and XYZ.doc and I want
each employee to open the XYZ file first, is there a way to programmatically
generate an error message denying access to the ABC file until the XYZ has
been opened?


Frederick Lorca






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Outlook attachments


Thanks for your reply. I figured out a way to accomplish my objective.
Each *.xls file will be saved with a unique password = to the employee's ID
number, which I pull from one of the cells in the report. The Outlook
message will alert the employees that their inventory report is password
protected and that they must open the *.doc file and read it to learn the
password needed to open the *.xls file.


Frederick Lorca


"Joel" wrote in message
...
When the file that you want to open first , I would automatically generate
a
temp file either in the users My Document directory or in the temporary IE
directory. The 2nd file should automatically check to see if the temp
file
exists and generate an error message if it doesn't. Include the date and
timestamp in the temp filename.

"Frederick Lorca" wrote:

Each Monday I run a VBA generated office inventory report in Excel. Each
employee's inventory is output to a separate worksheet tabbed with his or
her name. The VBA code includes a procedure that attaches each
employee's
report to an Outlook e-mail. I've been running this program successfully
for a while now. Occasionally I attach a second file to everyones'
report
when I consider it strategic or desirable to disseminate information that
way.

My question is this: I want to know if it's possible to force the
recipients of the e-mailed reports to open one file first. For example,
if
the e-mail includes two attached files named ABC.xls and XYZ.doc and I
want
each employee to open the XYZ file first, is there a way to
programmatically
generate an error message denying access to the ABC file until the XYZ
has
been opened?


Frederick Lorca








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook attachments Frederick Lorca Excel Programming 0 February 25th 07 08:01 AM
opening zip outlook attachments Rich[_30_] Excel Programming 0 May 3rd 06 10:15 AM
Outlook Webmail and Attachments Jane Excel Discussion (Misc queries) 0 October 12th 05 06:19 PM
saving Outlook attachments Steph[_3_] Excel Programming 1 July 18th 05 09:30 PM
Saving attachments from Outlook Jamie Excel Programming 5 May 17th 05 07:08 PM


All times are GMT +1. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"