+ Reply to Thread
Results 1 to 2 of 2

email a worksheet VBA

  1. #1
    Registered User
    Join Date
    05-11-2015
    Location
    melbourne
    MS-Off Ver
    2010
    Posts
    38

    email a worksheet VBA

    Hi I am completely new to VBA and I'm trying to work out how to email an excel sheet to myself. I have this code from researching how other people have solved the problem but it doesn't seem to work for me when it has done for others. The code I have used is below and the error message I get is "compile error: sub or function not defined"
    Please Login or Register  to view this content.
    With little experience I cant seem to work out the problem
    Last edited by alansidman; 08-28-2015 at 12:46 AM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: email a worksheet VBA

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. attach different worksheet and email them tdifferent email address through macro/vba/addin
    By arunverma004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2014, 08:20 AM
  2. [SOLVED] Email Macro to attach a non active worksheet to outlook email
    By mickgibbons1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2013, 08:38 PM
  3. Using VBA to send Email by selecting email from a cell within a worksheet
    By sm.salford in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2013, 01:58 PM
  4. Replies: 5
    Last Post: 12-17-2012, 05:10 PM
  5. Automatically Unprotect Worksheet Before Email Macro Then Protect After Email is Sent
    By geepeeone in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-23-2011, 07:45 PM
  6. email excel file or worksheet as an attachment to multiple email addresses
    By jgeagle5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2009, 03:40 PM
  7. Email a copy of a sheet to a specific person using an email on the worksheet. - VBA
    By j_lad_1999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2009, 11:38 AM

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