+ Reply to Thread
Results 1 to 6 of 6

On opening excel file attachment in outlook it opens with a suffix 001, 002

  1. #1
    Registered User
    Join Date
    06-02-2022
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Exclamation On opening excel file attachment in outlook it opens with a suffix 001, 002

    Hi experts,

    On opening an excel file attachment in MS outlook it opens with a suffix 001, 002 to the current workbook name at times.

    i have a vba macro which reads the current name as CurrentName = ActiveWorkbook.Name and i do not want this suffix .

    If i restart my system and then open the excel attachment this suffix never comes.

    Is there anyway i can prevent this suffix from coming while opening the excel attachment without restarting the system.

    Thanks,
    Aaron.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: On opening excel file attachment in outlook it opens with a suffix 001, 002

    Not sure of the situation.
    Do you get the suffix because another wb with the same name already exists in the temp folder?

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,525

    Re: On opening excel file attachment in outlook it opens with a suffix 001, 002

    If you want to perform actions in a file with macros, NEVER open the file directly from Outlook. First, save the file to a location convenient to you and open it from that location.
    When a file is opened directly from Outlook, a copy of the file is first saved in that program's temporary directory (can't remember the location on the disk), and only then is the file opened from that location. Subfolders are created in the temporary directory. Unfortunately, I don't understand the idea of creating them. When you open an Outlook file twice, a copy is saved in one of those subfolders. If a file with the same name exists in the subfolder, the new file has an incremented suffix in its name.

    Artik

  4. #4
    Registered User
    Join Date
    06-02-2022
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Re: On opening excel file attachment in outlook it opens with a suffix 001, 002

    yes you are right, i wish to know the location where the temporary file is stored and if i can use a batch file command to delete it..instead of restarting my system.

  5. #5
    Registered User
    Join Date
    06-02-2022
    Location
    India
    MS-Off Ver
    2013
    Posts
    3

    Re: On opening excel file attachment in outlook it opens with a suffix 001, 002

    Anyone know the location where the temporary file is stored and if i can use a batch file command to delete it..instead of restarting my system.

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,525

    Re: On opening excel file attachment in outlook it opens with a suffix 001, 002

    I don't know anything about Outlook. I see a problem with finding an event that will trigger when opening an attachment (or more precisely - BEFORE opening an attachment). If you can find such an event, then the rest of the code should not be much of a problem anymore.

    But maybe you need to do it differently. Why do you make the further operation of the code dependent on this line
    Please Login or Register  to view this content.
    Perhaps it can be solved differently. But then we need to know the code that uses CurrentName.

    Artik

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 05-10-2013, 05:40 AM
  2. Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  3. [SOLVED] Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Opening Excel out of explorer or outlook attachment
    By John Fuller in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-31-2005, 07:05 PM

Tags for this Thread

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