G
Guest
I receive files that are attachments, usually .xls or .txt files. I would
like to write code that selects the attachment and saves it to the
appropriate location.
My files are usually named randomName.txt as I don't know what the name of
the file will be.
The step I go through now is to right click and then select save as and then
name the file.
One step further- Sometimes I receive two files. They will have common names
but might place the date or other variable in the name; how could I select
this through vba(the appropriate file and then save it)?
Example: I receive two attachments that are - file0725.txt and another that
is named businessTooMuchInformation.txt. I would like to be able to select
each file in turn and save the them with the new name of: file.txt and
business.txt
How would I do this?
like to write code that selects the attachment and saves it to the
appropriate location.
My files are usually named randomName.txt as I don't know what the name of
the file will be.
The step I go through now is to right click and then select save as and then
name the file.
One step further- Sometimes I receive two files. They will have common names
but might place the date or other variable in the name; how could I select
this through vba(the appropriate file and then save it)?
Example: I receive two attachments that are - file0725.txt and another that
is named businessTooMuchInformation.txt. I would like to be able to select
each file in turn and save the them with the new name of: file.txt and
business.txt
How would I do this?