Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

Getting Excel file properties Using Outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gleiken - 13 Nov 2006 14:52 GMT
I'm trying to retrieve the Subject property of an Excel file using an Outlook
Macro.  This will then be used to determine where a file should be saved as I
have problems with users changing file names when they shouldn't.  Does
anyone know how to do this without opening the excel file?  I'd rather not do
that as I'm talking about hundreds of files at a time and can't be bothered
waiting for our server to catch up

Using Outlook 2002.
Michael Bauer [MVP - Outlook] - 14 Nov 2006 06:00 GMT
Where do you get the files from? Is the subject the filename?

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.VBOffice.net --

Am Mon, 13 Nov 2006 06:52:01 -0800 schrieb Gleiken:

> I'm trying to retrieve the Subject property of an Excel file using an Outlook
> Macro.  This will then be used to determine where a file should be saved as I
[quoted text clipped - 4 lines]
>
> Using Outlook 2002.
Gleiken - 14 Nov 2006 09:22 GMT
They are returned to a central mailbox and currently I have a macro that
saves the files to a folder dependent on filename (I can get that one
easily).  However, users keep changing the filenames (as people are inclined
to do) so I end up going through a large proportion of them each time (around
10% of 500 every other day).

The Subject I'm talking about is held within the File properties of an excel
file that you see by selecting properties from Explorer or within Excel
itself.  I know how to retrieve this when the file is open but I don't want
to open the file from the email (due to server delays it would take far too
long) and then retrieve it.

I was hoping there would be some way to retrieve this via Outlook without
opening it.  This would mean I could add the correct filename into the
subject of the Excel sheet when it's generated and then I wouldn't have to
worry about people changing them.

> Where do you get the files from? Is the subject the filename?
>
[quoted text clipped - 10 lines]
> >
> > Using Outlook 2002.
Michael Bauer [MVP - Outlook] - 15 Nov 2006 06:07 GMT
Download the dsofile.dll from:
http://support.microsoft.com/kb/224351/en-us

In the text it's said that the library can be used from any COM-aware
language.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
 -- www.VBOffice.net --

Am Tue, 14 Nov 2006 01:22:01 -0800 schrieb Gleiken:

> They are returned to a central mailbox and currently I have a macro that
> saves the files to a folder dependent on filename (I can get that one
[quoted text clipped - 27 lines]
>>>
>>> Using Outlook 2002.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.