+ Reply to Thread
Results 1 to 16 of 16

Select range in excel and save as text file & email - Macro

Hybrid View

  1. #1
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Select range in excel and save as text file & email - Macro

    The .to should work for hard coding in the address.
    The subject should work as well. The only thing may be that you need to get that value in Range("H152") when the original sheet is still open. You can do something like this near when the stFilename is set to A1:

    Dim stSubject as String
    stSubject = Range("H152").value
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  2. #2
    Registered User
    Join Date
    04-27-2015
    Location
    Houston, Texas
    MS-Off Ver
    2013
    Posts
    49

    Re: Select range in excel and save as text file & email - Macro

    Quote Originally Posted by nigelbloomy View Post
    The .to should work for hard coding in the address.
    The subject should work as well. The only thing may be that you need to get that value in Range("H152") when the original sheet is still open. You can do something like this near when the stFilename is set to A1:

    Dim stSubject as String
    stSubject = Range("H152").value
    My Apologies for the repetitive images....my bad
    I modified the email code as suggested but it is till coming up empty in the SEND TO, and SUBJECT LINE part of the email...? By all accounts it should work but not sure why it isnt

    THANKS SO MUCH FOR YOUR PATIENCE WITH ME

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro Help to select the data and save as a txt file.
    By annyfouanny in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2015, 12:04 AM
  2. [SOLVED] VBA / Macro to Select File and Save As
    By bloomingcarrot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2015, 01:13 AM
  3. Excel Macro lotus notes email Select range and paste in subject
    By johnny_w in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-31-2013, 07:27 AM
  4. [SOLVED] Save selected range in a pdf format & email the file to a someone automatically?
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2013, 12:16 PM

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