+ Reply to Thread
Results 1 to 3 of 3

Button - Send email

Hybrid View

Wiets Button - Send email 08-05-2008, 06:00 AM
shasur Here is a hint Sub... 08-05-2008, 06:06 AM
Wiets Thank you, it works perfectly! 08-06-2008, 09:04 PM
  1. #1
    Registered User
    Join Date
    08-05-2008
    Location
    Berlin
    Posts
    2

    Button - Send email

    This is my first post on this forum and my first time working with Excel.
    I need help with an email macro to do the following;

    The spreadsheet is where customers can order certain goods,
    The customer data is contained on Sheet2:B1..H67 - there are also vlookup functions within these cells,
    I would like the customer to click a button called "Send Order by Email" and the order (Sheet2:B1..H67) emailed to sales@company.com,
    It does not matter whether the order is emailed as an attachment, as data within the email itself or in another format.
    The recipient of this email order must simply be able to print the order - directly from Outlook email software or from within Excel.

    Your help will be greatly appreciated.

  2. #2
    Registered User
    Join Date
    05-28-2008
    Posts
    13
    Here is a hint

    Sub Send_CurrentWorkBook()
    
    Dim oWB As Workbook
    
    Set oWB = ActiveWorkbook
    
    ' Save the Workbook if it is not
    If oWB.Saved = False Then oWB.Save
    
    oWB.SendMail "sales@company.com"
    
    End Sub

    The above will send the activeworkbook over mail. You can call the above code in Button_Click event

  3. #3
    Registered User
    Join Date
    08-05-2008
    Location
    Berlin
    Posts
    2
    Quote Originally Posted by shasur
    Here is a hint

    The above will send the activeworkbook over mail. You can call the above code in Button_Click event

    Thank you, it works perfectly!

+ Reply to 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