LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
John
 
Posts: n/a
Default Macro - Copy - Email

I have created a form that is sent to a department whenever a new account is
opened. The file is too big to send, so I am trying to copy to two
worksheets within the form, paste them into a new workbook and then send that
email.

Within the Macro it keeps putting the newest workbook (i.e. book15)
Whenever you want it to copy and paste into a new workbook, the workbook
number is going to be different. Is there a way in excel, within the macro,
to have it just put it into a new work book instead of a specific numbered
work book? I know this is confusing. I have included the macro in this
message to see if that would help.

Sheets("PEF").Copy
Windows("Copy of Master Form V3.00.xls").Activate
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
ActiveSheet.Next.Select
Sheets("Check Order").Copy
Application.Dialogs(xlDialogSendMail).Show
Windows("Book15").Activate
Application.Dialogs(xlDialogSendMail).Show
Windows("Copy of Master Form V3.00.xls").Activate
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
ActiveSheet.Previous.Select
End Sub
 
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
Help with copy macro Kel Excel Discussion (Misc queries) 13 February 21st 05 11:44 PM
Macro to delete a text box and copy in new one Dave Excel Discussion (Misc queries) 1 February 18th 05 02:02 AM
Activate a macro to insert a row and copy the formuals from the rows above to the blank row oil_driller Excel Discussion (Misc queries) 1 February 11th 05 03:30 PM
Need Macro to copy specific sheet mac Excel Worksheet Functions 1 January 17th 05 08:46 PM
copy macro assigned buttons in an array Phatboy_D Excel Worksheet Functions 1 December 1st 04 10:01 PM


All times are GMT +1. The time now is 05:16 PM.

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

About Us

"It's about Microsoft Excel"