Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
first of all I have already gotten a lot of help from Tom Ogilvy, which I
really appreciate, but here is what he has helped me get so far: Private Sub CommandButton1_Click() Dim rng As Range Set rng = ActiveSheet.PivotTables(1).TableRange2 Set rng = Range(rng(1).Offset(-7, 0), rng) Workbooks.Add Template:=xlWBATWorksheet ActiveSheet.Range("A1").Select rng.Copy ActiveSheet.Range("A1").PasteSpecial xlValues ActiveSheet.Range("A1").PasteSpecial xlFormats ActiveWorkbook.SendMail Subject:="Scheduling", " ActiveWorkbook.Close SaveChanges:=False End Sub What I am still trying to figure out is how I can first of all send the sheet to an unsent email where the user could then choose a subject and pick the users they would like to send it to, right now it just sends to . Also I need to figure out how to ensure the copied and pasted information has the same format, because when it emails some columns are shrunk which makes the information difficult to read. Thank you for any help you may have, I really appreciate it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
email Button | Excel Worksheet Functions | |||
Programing a button in excel | Excel Programming | |||
Program a button to copy a pivot table and then email | Excel Discussion (Misc queries) | |||
Making email button work after email | Excel Programming | |||
can I copy a column of email addresses, paste into email address? | New Users to Excel |