Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Problem with ActiveWorkbook.EnvelopeVisible

My workbook creates a new Workbook (thanks Doug for the class
example) and I want to be able to email it.

I use ActiveWorkbook.EnvelopeVisible=TRUE to open the Send Email (same
as FILE-SEND TO- MAIL RECIPIENT) which is great because it really
shows what the user is supposed to do.

I want to be able to turn it off and
ActiveWorkbook.EnvelopeVisible=FALSE does not work properly for some
reason.

The headers (To From Subject, etc) are removed but not the space
occupied by them.
If I use ActiveWorkbook.EnvelopeVisible=TRUE followed by
ActiveWorkbook.EnvelopeVisible=FALSE then excel works correctly.

The problems seem to be that ActiveWorkbook.EnvelopeVisible=FALSE is
not called in the same macro.
It is actually in the sub Workbook_BeforeClose, if the user clicks the
Excel close button then what I want it to do is just close the new
workbook and close the send email feature.

It works but the empty space left is a problem.
How can I fix this?

ActiveWorkbook.EnvelopeVisible=TRUE
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
help with Application.EnvelopeVisible [email protected] Excel Programming 12 July 14th 08 05:29 PM
ActiveWorkbook.SendMail and IE - odd problem drumstruck Excel Programming 0 March 12th 08 04:39 PM
ActiveWorkbook.SaveAs problem SandyUK[_11_] Excel Programming 2 November 14th 05 02:54 PM
ActiveWorkbook.EnvelopeVisible = True DFox Excel Programming 3 October 7th 04 07:51 PM
ActiveWorkbook.SaveAs Problem SowBelly Excel Programming 4 August 4th 04 10:58 PM


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