LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro Strategy - "Peeling" Off Sheets


I have a workbook with 5 sheets and VBA Code attached. The sheets are
updated each business day and carry a rolling 6 months of history. I
want to peel off 2 of these sheets and place them into a new workbook,
with a date stamp in the filename, with zero VBA Code; this new
workbook will be attached to a daily e-mail.

My code has been peeling off 1 sheet, WITH ZERO CODE, into a new
workbook and e-mailing such workbook for several months. However, 2
sheets inserted into a new workbook is more difficult, at least for
me.

A related query: in my existing code, after bringing in new data to
the 6-month history workbook, I was playing around with 1) saving the
parent workbook; 2) deleting 3 of the sheets; 3) saving the active wb
(of course, this includes VBA Code); 4) activating the parent wb; and
5) e-mailing the
2-sheet wb.

Two problems: a) the e-mailed wb would include VBA Code (not
desirable); and b) the e-mail fails because the error message indicates
that the file to be attached is in use by another process. When
stepping thru the Code, when the above step 4) is processed, nothing
appears to happen. (I thought that when a File SaveAs occurs, that the
original file was still hanging around in the "background" -- but I'm
not sure that is the case. Also, I guess if two workbooks share the
same VBA Code, it is problematic to attach one of them to an e-mail.)

Strategic suggestions would be appreciated,
Chuckles123


--
Chuckles123
------------------------------------------------------------------------
Chuckles123's Profile: http://www.excelforum.com/member.php...o&userid=14948
View this thread: http://www.excelforum.com/showthread...hreadid=570973

 
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
Protecting/Unprotecting all sheets with macro leads to "image" iss MikeR Excel Worksheet Functions 3 February 22nd 10 09:33 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Sheets("Rpt").Copy different results from running in macro than off excel menu?? tmbo Excel Discussion (Misc queries) 7 August 9th 06 01:13 PM
"With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets Punsterr Excel Programming 3 February 21st 06 04:01 AM
Creating an "update" button and using a macro to copy data from multiple sheets SPIRITTTJ Excel Programming 1 January 8th 04 05:50 PM


All times are GMT +1. The time now is 12:53 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"