Hello Experts:
I have the following ambition but not skilled enough to carry it out:
I have a test workbook w/ 3 sheets (in real life, there are 15). The challenge is, when the macro on an active sheet is clicked, how to make it obey to the followings:
1. Copy the whole active page to the clipboard
2. Open a new spreadsheet
3. Do a Paste-Special of the info to "Sheet1" of the new spreadsheet that includes :
3a. column width, format, row height
3b. margin (from source info) and any header and footer info (huge challenge to me)
4. Attach this "Sheet1" to an email window (no recipient name or subject needed.)
5. Close the new ws (after Sheet1 is attached to an email window)
6. Leave the source workbook open so sales person can go on with another attachment.
So far, I have a code to attach the active sheet to an email window and still leaves the source wb open. But this code only works for Netscape mail. To other users, it attaches the "whole" workbook and not one single selected ws.
So I figure the trick above (though more steps) should do it for any email client (netscape, outlook, eudora ....).
[VBA] Dim x As Boolean
ActiveSheet.Copy
x = Application.Dialogs(xlDialogSendMail).Show
End Sub
[/VBA]
Pls see my test spreadsheet attached.
Many many THANKS.
Nee