Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default macros to save then email

Hi,

I have not got a clue about macros so any help will be greatly appreciated.

I need to create a macro that is attached to a button so that when this
button is pressed it saves the sreadsheet (the file name needs to relate to
the reference cell in the spread sheet) then this spreadsheet is attached to
an email so that it can be sent to whoever it needs to be sent to, you urgent
assistance on this will be greatly appreciated.

many thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default macros to save then email

maybe this will give you some idea. Assuming the filename you want to save as
is in A1 of the sheet where the button is.

Sub Button1_Click()
ThisWorkbook.SaveAs ActiveSheet.Range("A1").Text
Application.Dialogs(xlDialogSendMail).Show
", Arg2:="Email Subject"
End Sub



--
Hope that helps.

Vergel Adriano


"stuck4once" wrote:

Hi,

I have not got a clue about macros so any help will be greatly appreciated.

I need to create a macro that is attached to a button so that when this
button is pressed it saves the sreadsheet (the file name needs to relate to
the reference cell in the spread sheet) then this spreadsheet is attached to
an email so that it can be sent to whoever it needs to be sent to, you urgent
assistance on this will be greatly appreciated.

many thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I email a workbook without macros getting removed? Jack McNees Excel Discussion (Misc queries) 0 July 31st 09 02:30 PM
email without macros chrisnsmith Excel Discussion (Misc queries) 4 February 13th 09 09:45 PM
Macros that:Email,FindNext iambalrog[_2_] Excel Programming 3 December 16th 05 06:31 PM
sending email using macros [email protected] Excel Programming 9 June 6th 05 03:13 PM
Email templates & Excel Macros Andrew[_27_] Excel Programming 2 February 20th 04 06:29 AM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"