+ Reply to Thread
Results 1 to 16 of 16

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

Hybrid View

  1. #1
    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
    Are you still having a problem with this? I tested it out again and I get values in the text file. Can you post a copy of your workbook without any sensitive data?
    Thanks so much for your response.
    I am not quite sure how to post a workbook on here

    But basically just as in your code all the values to be copied are in A4 through to A67.
    Now the values in each cell is reading from other values above (e.g. A4= G4). Could this be affecting it?

    The email works great but the txt file is still empty.

    Also can I tried modifiying the Email code to include a particular SEND TO address and a particular SUBJECT LINE but that didn't seem to take for some reason. See below
     On Error Resume Next
        With OutMail
            .To = "name@name.com"
            .CC = ""
            .BCC = ""
            .Subject = "BUNKER EVALUATION" & Range("H152").Value
            .Body = "See attached"
            .Attachments.Add stFileLocation & "txt"
            .Display
        End With
    Else: End If

  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

    here is an image of the COPY OF THE WORKBOOK with a possible range that the macro will read from
    Attachment 400327
    Last edited by harryco79; 06-10-2015 at 05:33 PM.

+ 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