+ Reply to Thread
Results 1 to 5 of 5

Mailing different files to multiple persons

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Mailing different files to multiple persons

    Hi,

    I am using Ron de Bruin's code to mail different files to multiple persons. The code can be found here:

    http://www.rondebruin.nl/mail/folder2/files.htm

    In column C I should write the address of the file I want to send. I am using the same workbook, which I edit in several different ways and save them in different folders. I want to send each edited file to each address in column B.

    My question is: how can I update the content of the cells in column C automatically with the new file that was just saved? As I want to do this on a daily basis, it would be very helpful if this process was automated.

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Mailing different files to multiple persons

    Quote Originally Posted by pedrofogao21 View Post
    My question is: how can I update the content of the cells in column C automatically with the new file that was just saved?
    Run something like this after each saving of the workbook:
    Please Login or Register  to view this content.
    That's the general idea. Only you know which rows in column C (and up to column Z, as per Ron's code) need to be populated with the file name.

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Mailing different files to multiple persons

    Thanks for you help. The thing is, I am using SaveCopyAs, since I want to continue to work on the original Workbook as I run the macro, so I don't think I can use the command Range("C1").Value = ThisWorkbook.FullName

  4. #4
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Mailing different files to multiple persons

    SaveCopyAs requires a file name to be specified, so just store that in the C column. Maybe something like this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-28-2012
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: Mailing different files to multiple persons

    Thanks a lot Chippy, it is working fine now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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