![]() |
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. |
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. |
All times are GMT +1. The time now is 05:15 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com