+ Reply to Thread
Results 1 to 2 of 2

Determine if XL file opened from Outlook or a saved file

Hybrid View

  1. #1
    quartz
    Guest

    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. #2
    Vacation's Over
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1