Closed Thread
Results 1 to 7 of 7

Want to change attached file name & subject line in the coding : Email Range

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Want to change attached file name & subject line in the coding : Email Range

    Dear All,

    I have put a module in excel vba and assign this macro to a Send Mail button for a range of data in excel sheet. when i click on the sendmail button it automatically compose a msg from outlook and attach that range of data in a excel sheet with a file name "Selection of example.xlsx Date & Time.xlsx" and a subject line "This is a subject line".

    Now i want to change the

    Name of Attachement to : Order No + "data in C3 cell"
    Subject Line to : Order No + "data in C3 cell"

    Please find below coading:

    Please Login or Register  to view this content.


    Please find example.xlsx file for your refrence...

    Thanks
    Attached Files Attached Files
    Last edited by Kapil007; 08-30-2010 at 07:43 AM. Reason: Added Code Tags

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA Coding help in excel vba: Email Range

    Didn't I answer this in an other forum?

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: VBA Coding help in excel vba: Email Range

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: VBA Coding help in excel vba: Email Range

    Kapil,

    with your first post in this forum, you managed to ignore three of our forum rules

    - code tags around code
    - meaningful thread titles
    - supply links to crossposts

    I strongly suggest you read our forum rules before you participate any more in this forum.

  5. #5
    Registered User
    Join Date
    08-30-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA Coding help in excel vba: Email Range

    Quote Originally Posted by Bob Phillips View Post
    Didn't I answer this in an other forum?
    But it is showing error

    error file attached, please see

    Thanks
    Kapil
    Attached Images Attached Images

  6. #6
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: VBA Coding help in excel vba: Email Range

    So what do you think the problem is?

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Want to change attached file name & subject line in the coding : Email Range

    Kapil, after you've read and understood the forum rules, start another thread that complies with our forum rules.

    thanks.

    thread closed.

Closed Thread

Thread Information

Users Browsing this Thread

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

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