Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Everybody,
I'm trying to copy some contents of two sheets into a new workbook to be saved on the user's desktop and attached to an email. Ron's send mail codes (http://www.rondebruin.nl/sendmail.htm) work great, but I must get rid of all code behind the sheets in the new wbook. I have also used Chip's code at http://www.cpearson.com/excel/vbe.htm, but I don't want to have to manually reference VBA Extensibility and set the trust access to visual basic project on different computers. Is there a way around this in Excel XP through code? OrI've created a macro to simply copy the content from the active wbook, create a new wbook, paste and format as needed, etc.-but cannot figure out how to name the new wbook and save it to the user's desktop. How is it possible to create a unique name for the wbook (if Book1 or Book2 or TodaysDate.xls is already present) and make this efficient? Thanks, Eric |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to copy cell contents from one sheet to another | Excel Worksheet Functions | |||
Trouble removing toolbar - why won't my code work? | Excel Programming | |||
Code to work with ONLY active Sheet not all ? | Excel Programming | |||
Exporting work sheet info to envelopes | Excel Discussion (Misc queries) | |||
Worksheet_Selection Change code will not allow cell contents to be copied and pasted onto the sheet it's running on | Excel Programming |