I have a macro to export an email to a folder. It saves the date, time, from and subject line as the file name. How can I get this to save the email as Name= date and time, Author= sender and Subject= Subject.
Do you want to use a file name like "name 130626-author=sender-subject=thesubject.msg" or do you mean writing those values to the file properties so they show in windows explorer details view?
You need to use windows scripting or API calls to change file properties. I don't have any code samples that do that and wasn't able to find any general code for that - found some for word and excel properties, but outlook doesn't support that method.
Do you want to use a file name like "name 130626-author=sender-subject=thesubject.msg" or do you mean writing those values to the file properties so they show in windows explorer details view?
You need to use windows scripting or API calls to change file properties. I don't have any code samples that do that and wasn't able to find any general code for that - found some for word and excel properties, but outlook doesn't support that method.
Yes trying to get those into windows explorer details. You assisted me in getting them exported to a file with a macro a while back and it works great. But I found that windows search works well with regular emails instead of using the macro but the problem is it will not save multiple emails with same subject from replies or forwards. So if I save them with just the date and time and can get the subject field to populate then they would show up better in windows search. They would have the preview screen at the bottom like Outlook has to preview the email. As no email has the same date/hhmmss so that would make a good format to store them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.