Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default sending active sheet by mail without macro (from Ron's page)

Hi,
I am using Ron's Mail_ActiveSheet()
http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default sending active sheet by mail without macro (from Ron's page)

On Nov 8, 3:09 am, Dan wrote:
Hi,
I am using Ron's Mail_ActiveSheet()http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan


Befo

With Destwb

insert:

With Destwb.VBProject.VBComponents
.Remove VBComponent:=.Item("Module1")
End With

subbing the name of the module you want to delete for "Module1"

You'll have to tell your computer to trust access to vb components.
See http://support.microsoft.com/kb/282830 for how to do that.

  #3   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default sending active sheet by mail without macro (from Ron's page)

Thank you,
But I am getting a "Run-time error '9' : subscript out of range", I am
guessing this is because I am trying to remove the macro on the sheet I am
sending and not on the module.

Dan

" wrote:

On Nov 8, 3:09 am, Dan wrote:
Hi,
I am using Ron's Mail_ActiveSheet()http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan


Befo

With Destwb

insert:

With Destwb.VBProject.VBComponents
.Remove VBComponent:=.Item("Module1")
End With

subbing the name of the module you want to delete for "Module1"

You'll have to tell your computer to trust access to vb components.
See http://support.microsoft.com/kb/282830 for how to do that.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sending active sheet by mail without macro (from Ron's page)

Hi Dan

If you copy the macro in a normal module in the workbook it will not
send the code.

Where have you paste the code and how do you run it ?



--

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


"Dan" wrote in message ...
Thank you,
But I am getting a "Run-time error '9' : subscript out of range", I am
guessing this is because I am trying to remove the macro on the sheet I am
sending and not on the module.

Dan

" wrote:

On Nov 8, 3:09 am, Dan wrote:
Hi,
I am using Ron's Mail_ActiveSheet()http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan


Befo

With Destwb

insert:

With Destwb.VBProject.VBComponents
.Remove VBComponent:=.Item("Module1")
End With

subbing the name of the module you want to delete for "Module1"

You'll have to tell your computer to trust access to vb components.
See http://support.microsoft.com/kb/282830 for how to do that.


  #5   Report Post  
Posted to microsoft.public.excel.programming
dan dan is offline
external usenet poster
 
Posts: 866
Default sending active sheet by mail without macro (from Ron's page)

Thank you Ron,
But the code I am trying to remove is specific to the sheet I am trying to
send.
such as Private Sub Worksheet_Activate() & Sub
Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
so I cannot copy it over to another module.

Dan

"Ron de Bruin" wrote:

Hi Dan

If you copy the macro in a normal module in the workbook it will not
send the code.

Where have you paste the code and how do you run it ?



--

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


"Dan" wrote in message ...
Thank you,
But I am getting a "Run-time error '9' : subscript out of range", I am
guessing this is because I am trying to remove the macro on the sheet I am
sending and not on the module.

Dan

" wrote:

On Nov 8, 3:09 am, Dan wrote:
Hi,
I am using Ron's Mail_ActiveSheet()http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan

Befo

With Destwb

insert:

With Destwb.VBProject.VBComponents
.Remove VBComponent:=.Item("Module1")
End With

subbing the name of the module you want to delete for "Module1"

You'll have to tell your computer to trust access to vb components.
See http://support.microsoft.com/kb/282830 for how to do that.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default sending active sheet by mail without macro (from Ron's page)

OK, now I understand

You can use Cip's code
http://www.cpearson.com/excel/vbe.aspx

Or create a new workbook with one empty sheet and copy all the data in it with
code and send that workbook.
If you need help with the code let me know.

If you use Excel 2007 there is another option







--

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


"Dan" wrote in message ...
Thank you Ron,
But the code I am trying to remove is specific to the sheet I am trying to
send.
such as Private Sub Worksheet_Activate() & Sub
Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
so I cannot copy it over to another module.

Dan

"Ron de Bruin" wrote:

Hi Dan

If you copy the macro in a normal module in the workbook it will not
send the code.

Where have you paste the code and how do you run it ?



--

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


"Dan" wrote in message ...
Thank you,
But I am getting a "Run-time error '9' : subscript out of range", I am
guessing this is because I am trying to remove the macro on the sheet I am
sending and not on the module.

Dan

" wrote:

On Nov 8, 3:09 am, Dan wrote:
Hi,
I am using Ron's Mail_ActiveSheet()http://www.rondebruin.nl/mail/folder2/mail2.htm

nut it is sending the sheet with the macro/vba - can it be sent without the
macro/vba?

Many thanks.
Dan

Befo

With Destwb

insert:

With Destwb.VBProject.VBComponents
.Remove VBComponent:=.Item("Module1")
End With

subbing the name of the module you want to delete for "Module1"

You'll have to tell your computer to trust access to vb components.
See http://support.microsoft.com/kb/282830 for how to do that.



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
Ron's e-mail won't work when I change the send to: Theo Excel Discussion (Misc queries) 4 June 27th 08 09:16 PM
Sending one sheet by mail Robert Excel Discussion (Misc queries) 1 June 18th 06 10:43 AM
sending the active worksheet and an additional new sheet Qaspec Excel Programming 1 February 2nd 05 02:57 AM
Help sending active sheet to email list Kingtriotn Excel Programming 5 January 18th 04 10:43 AM
sending one sheet by e-mail gareth Excel Programming 3 November 7th 03 01:01 PM


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