A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Resolving MSG file names



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 19th 08, 12:28 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default Resolving MSG file names

When I drag and drop a group of Outlook messages to a Windows file system
folder, the file names are resloved (illegal characters removed) and
duplicate file names are catered for (using (1), (2)...). How do I access and
use the function(s) that take care of these aspects? When using
MailItem.Subject as the filename with the MailItem.SaveAs method, the file
name is not resolved and truncates at the point an illeagal charater in
..Subject is encountered.

Ta.
  #2  
Old September 19th 08, 02:10 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Resolving MSG file names

You have to write your own procedure to find and remove the illegal
characters. See
http://www.grouplogic.com/knowledge/...Info/docID/111
for a list of illegal characters and file names.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GP" wrote in message
...
When I drag and drop a group of Outlook messages to a Windows file system
folder, the file names are resloved (illegal characters removed) and
duplicate file names are catered for (using (1), (2)...). How do I access
and
use the function(s) that take care of these aspects? When using
MailItem.Subject as the filename with the MailItem.SaveAs method, the file
name is not resolved and truncates at the point an illeagal charater in
.Subject is encountered.

Ta.


  #3  
Old September 22nd 08, 12:58 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default Resolving MSG file names

Ken,

Writing a procedure to remove the illeagal string characters is not a
problem. I have already written a function to do that. However the .SaveAs
method sometimes throws an error for unexpected reasons (I have seen it
happen when there is a tab in .Subject). Are the built in functions that
already deal with this, and the handling of two messages witht the same
filename, not accessible?

Thanks.

  #4  
Old September 22nd 08, 02:01 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Resolving MSG file names

Obviously if you're getting errors in those circumstances the internal code
that checks those things is not being called and it's up to you to take care
of handling those conditions.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GP" wrote in message
...
Ken,

Writing a procedure to remove the illeagal string characters is not a
problem. I have already written a function to do that. However the .SaveAs
method sometimes throws an error for unexpected reasons (I have seen it
happen when there is a tab in .Subject). Are the built in functions that
already deal with this, and the handling of two messages witht the same
filename, not accessible?

Thanks.


  #5  
Old September 22nd 08, 05:40 PM posted to microsoft.public.outlook.program_vba
gp
external usenet poster
 
Posts: 13
Default Resolving MSG file names

Ken,

I'm just trying to avoid re-inventing the wheel. If Microsoft have already
written the existing functions to cope with file naming errors that I have
thought of, and also errors I have not thought of, then using those functions
would be a great help. For example I had one .SaveAs file name error that I
never found the cause of, even after pasting .Subject into Word and looking
for non-visible / non-standard characters. Are the built in functions
available, and if so how can I access them?

Thanks.

  #6  
Old September 22nd 08, 11:34 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Resolving MSG file names

Those functions are not accessible from Outlook. They may be available as
Win32 API calls possibly, or from some Framework calls if you're using
managed code, otherwise you have to roll your own.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"GP" wrote in message
...
Ken,

I'm just trying to avoid re-inventing the wheel. If Microsoft have already
written the existing functions to cope with file naming errors that I have
thought of, and also errors I have not thought of, then using those
functions
would be a great help. For example I had one .SaveAs file name error that
I
never found the cause of, even after pasting .Subject into Word and
looking
for non-visible / non-standard characters. Are the built in functions
available, and if so how can I access them?

Thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Resolving Names AP[_2_] Outlook and VBA 2 December 18th 07 08:54 PM
Saving attachements w/ names from a .xls file... [email protected] Outlook and VBA 2 August 24th 07 01:55 PM
punctuation in attachment file names [email protected] Outlook - General Queries 1 July 20th 07 09:20 PM
File names do not appear when trying to export to any file type except .pst [email protected] Outlook - General Queries 8 December 25th 06 12:29 PM
How to stop fax number showing as address when resolving names Bob Harley Outlook - Using Contacts 1 November 22nd 06 05:08 PM


All times are GMT +1. The time now is 02:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.