Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Determine if XL file opened from Outlook or a saved file

I am using Office 2003 on Windows XP.

I have an Excel form file, that contains macros, uploaded into Public
Folders in Outlook. In 2003, the user is given the opportunity to Save the
file locally or Open it directly.

Perhaps in an "On Open", I need a way to programmatically determine whether
the file has been saved by the user - and then disable the macros (I can do
this part already). i.e. I want the user to only Open the file directly from
the Outlook folder, not save it and then open the saved copy.

How can I programmatically identify if the file has been saved somewhere
else vs. opened directly?

Thanks much for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Determine if XL file opened from Outlook or a saved file

since you know the location of the file in Outlook
you could test
if not thisworkbook.path = "What you expect"' then
close out and give error message
end if

"quartz" wrote:

I am using Office 2003 on Windows XP.

I have an Excel form file, that contains macros, uploaded into Public
Folders in Outlook. In 2003, the user is given the opportunity to Save the
file locally or Open it directly.

Perhaps in an "On Open", I need a way to programmatically determine whether
the file has been saved by the user - and then disable the macros (I can do
this part already). i.e. I want the user to only Open the file directly from
the Outlook folder, not save it and then open the saved copy.

How can I programmatically identify if the file has been saved somewhere
else vs. opened directly?

Thanks much for your assistance.

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
"File Error: Data May Be Lost" when file saved on Mac is opened inWindows Игорь Excel Discussion (Misc queries) 0 December 28th 09 03:32 PM
Formatting not saved when file re-opened rzink Excel Discussion (Misc queries) 0 December 14th 09 06:18 PM
can't find file opened from email,changes made & saved newtothis Excel Discussion (Misc queries) 2 September 6th 08 09:44 PM
how do i determine when a file was last opened manreis Excel Discussion (Misc queries) 1 July 22nd 06 04:44 PM
How do I recover excel file opened through email and not saved Liane Excel Discussion (Misc queries) 6 June 28th 06 06:59 PM


All times are GMT +1. The time now is 11:28 PM.

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

About Us

"It's about Microsoft Excel"