Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Excel Outlook VB

Hi, I currently have an Excel book then when a button is pressed the vb
behind it saves the book and then emails it via Outlook.

My problem is the company firewall prevents it being sent. Can't change the
firewall rules, hence is there a way around it, i.e.

disable or delete the vb during the save?

or do I need rather than save the book to save the relevant sheet to another
book - don't know the syntax

????
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Excel Outlook VB

Your problem could be a couple of different situations.

1) The firewall is doesn't allow .xls files to be attached to an e-mail

Solutions: Send the data as a table. Or rename the xls file to slx. Tell
the people who receive the e-mail to rename the file before using the file.
Most filewalls look only for specific extensions on files and block these
extensions. Attaching an unknown extension usually doesn't get blocked.
2) The firewall doesn't allow .xls files with macros to be sent. Remove
the macros before sending the file.



"Paul Dennis" wrote:

Hi, I currently have an Excel book then when a button is pressed the vb
behind it saves the book and then emails it via Outlook.

My problem is the company firewall prevents it being sent. Can't change the
firewall rules, hence is there a way around it, i.e.

disable or delete the vb during the save?

or do I need rather than save the book to save the relevant sheet to another
book - don't know the syntax

????

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Excel Outlook VB

Activesheet.copy

creates a copy of the sheet in a new workbook.

then you can work with ActiveWorkbook.

--
Regards,
Tom Ogilvy


"Paul Dennis" wrote:

Hi, I currently have an Excel book then when a button is pressed the vb
behind it saves the book and then emails it via Outlook.

My problem is the company firewall prevents it being sent. Can't change the
firewall rules, hence is there a way around it, i.e.

disable or delete the vb during the save?

or do I need rather than save the book to save the relevant sheet to another
book - don't know the syntax

????

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
Push Button in Outlook to Change Focus to Outlook Contact List Cole Excel Programming 0 October 25th 06 11:29 PM
excel open in outlook if outlook is running kirk Excel Discussion (Misc queries) 0 May 24th 06 06:42 PM
Outlook Automation Error Problem - Can't locate Outlook Module Allan P. London[_2_] Excel Programming 1 August 14th 05 10:52 PM
Late Binding to Outlook from Excel: Outlook modifies email body Lenny Wintfeld Excel Programming 0 December 12th 04 04:03 PM
Display mail application either in Outlook, or Outlook express [email protected] Excel Programming 0 April 13th 04 09:50 PM


All times are GMT +1. The time now is 09:45 AM.

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"