#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default email without macros

Is there a way to email a workbook without the macros attached? If so, how?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default email without macros

remove them from the copy you send. (Alt-F11 and delete them)

chrisnsmith wrote:

Is there a way to email a workbook without the macros attached? If so, how?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email without macros

Hi chrisnsmith

I have a option to remove the code in my mail add-in
http://www.rondebruin.nl/mail/add-in.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"chrisnsmith" wrote in message ...
Is there a way to email a workbook without the macros attached? If so, how?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default email without macros

Hi, Ron
I currently use your code for sending my email. One part of your code is as
pasted.

If Val(Application.Version) = 12 Then
If Wb.FileFormat = 51 And Wb.HasVBProject = True Then
MsgBox "There is VBA code in this xlsx file, ther will" & vbNewLine
& _
"be no VBA code in the file you send. Save the " & vbNewLine & _
"file first as xlsm and the try the macro again", vbInformation

I took this to mean that there would be no VBA code in the email I send,
however when I tested it by sending an email to myself, the code was there
and that which
was to perform certain actions on opening the workbook worked fine.

Have I done something wrong, if so what, and how do I correct it?

I installed your Send Mail add-in and it works great for sending my mail VBA
free,but requires me to input the receipients address before sending. I need
to do this automatically, as in your code.

Can I adapt your add-in for use with your code or modify your code in some
way to send the VBA free workbook copy created by your add-in?

By the way, I've found your replies to my postings to be quite helpful for a
novice code writer.

Thanks
"Ron de Bruin" wrote:

Hi chrisnsmith

I have a option to remove the code in my mail add-in
http://www.rondebruin.nl/mail/add-in.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"chrisnsmith" wrote in message ...
Is there a way to email a workbook without the macros attached? If so, how?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default email without macros

Hi

I took this to mean that there would be no VBA code in the email I send,

No it test if you copy code in the file and give you a warning that you must save it as xlsm to keep the code.

If you want to remove the code you can do a SaveAs with code as xlsx and send the file if you use Excel 2007

If not see Chip Pearson's site for code to remove code
http://www.cpearson.com/excel/vbe.aspx

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"chrisnsmith" wrote in message ...
Hi, Ron
I currently use your code for sending my email. One part of your code is as
pasted.

If Val(Application.Version) = 12 Then
If Wb.FileFormat = 51 And Wb.HasVBProject = True Then
MsgBox "There is VBA code in this xlsx file, ther will" & vbNewLine
& _
"be no VBA code in the file you send. Save the " & vbNewLine & _
"file first as xlsm and the try the macro again", vbInformation

I took this to mean that there would be no VBA code in the email I send,
however when I tested it by sending an email to myself, the code was there
and that which
was to perform certain actions on opening the workbook worked fine.

Have I done something wrong, if so what, and how do I correct it?

I installed your Send Mail add-in and it works great for sending my mail VBA
free,but requires me to input the receipients address before sending. I need
to do this automatically, as in your code.

Can I adapt your add-in for use with your code or modify your code in some
way to send the VBA free workbook copy created by your add-in?

By the way, I've found your replies to my postings to be quite helpful for a
novice code writer.

Thanks
"Ron de Bruin" wrote:

Hi chrisnsmith

I have a option to remove the code in my mail add-in
http://www.rondebruin.nl/mail/add-in.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"chrisnsmith" wrote in message ...
Is there a way to email a workbook without the macros attached? If so, how?



Reply
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
Macros - Converting Excel spreadheet to Outlook email Clyde Excel Discussion (Misc queries) 1 April 6th 08 04:10 PM
Personal.xls macros not available when opening email attachment Eric Winegarner Excel Discussion (Misc queries) 0 June 29th 06 04:39 PM
Verifying Email addresses etc using macros [email protected] Excel Discussion (Misc queries) 0 February 13th 06 07:25 PM
Have problem sending spreadsheet email and losing custom toolbar and macros memphoman Excel Discussion (Misc queries) 0 January 19th 06 08:40 PM
How do I send/email macros from my excel workbook to someone else? Drea Excel Worksheet Functions 1 August 10th 05 08:08 PM


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