LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Report Post  
Posted to microsoft.public.excel.programming
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Code to delete Macros

Ok Tom,.......... we did finally get it working, and with all our bells and
whistles too........thanks to your post and the others too.........

You guys are the greatest...........
Thank you all sincerely.........

Vaya con Dios,
Chuck, CABGx3



"Tom Ogilvy" wrote in message
...
' creates new workbook with sheet1, 6 and 10
worksheets(Array("Sheet1","Sheet6","Sheet10")).cop y
' perform any adjustments - for example, on sheet1
Activeworkbook.Worksheets(1).Range("B9,C11,D15,Z21 ").Clearcontents
ActiveWorkbook.SendMail, , "Report for Today"
Activeworkbook.close SaveChanges:=False

--
Regards,
Tom Ogilvy




"CLR" wrote in message
...
Yes, thats the ticket.........essentially we were at that point, but

unable
to figure out how to make the "new" workbook send out by email from a

macro
in the original workbook.........any help there would be

appreciated.......

Vaya con Dios,
Chuck, CABGx3







"mudraker " wrote in message
...
Personally I would have the macro in the workbook that has all your
other macro's.

Build the macro to create a brand new workbook, copy the required data
into the new workbook then send the new workbook by email.

This way no macros are sent and the receiver does not have to worry
about the validity of any macro's.


---
Message posted from
http://www.ExcelForum.com/







 
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
delete macros sandy Excel Worksheet Functions 1 July 11th 07 11:01 PM
How can I delete all macros? Pheasant Plucker® Excel Discussion (Misc queries) 20 July 27th 06 12:49 PM
How to delete macros Jaime Stuardo Excel Discussion (Misc queries) 2 February 14th 05 02:29 PM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM
VBA code to delete VBA code in another Workbook Chip Pearson Excel Programming 0 September 15th 03 03:54 PM


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