Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ActiveWorkbook.SendMail and IE - odd problem

I added a button to an existing Excel sheet so the user can email the sheet
to me. It works fine if run from Excel.
However, the user accesses the sheet from an ASP menu, delivered via
Internet Explorer. When the user clicks the button, the
ActiveWorkbook.SendMail command works fine. But any VB command after the
SendMail fails.

For example,
Sub crct()
ActiveWorkbook.SendMail _
, ", _
Subject:="correction requested"

Range("d5:e7").ClearContents
Range("d2:d3").ClearContents
End Sub

The Range command gives me "Method Range of object _Global failed".
I get some type of error for ANY command executed after the SendMail
command, but only if run via IE.

Any ideas?
Thanks!


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
ActiveWorkbook.SendMail not working Craig[_24_] Excel Programming 1 March 7th 06 03:50 AM
Alert message during Activeworkbook.sendmail N10 Excel Programming 3 April 2nd 05 01:32 PM
ActiveWorkbook.SendMail Sandy Excel Programming 2 March 15th 05 07:17 AM
ActiveWorkbook.SendMail Security Warning Michael Rekas[_2_] Excel Programming 2 December 16th 04 05:28 PM
Activeworkbook.sendmail Jamie[_5_] Excel Programming 2 October 2nd 03 01:25 PM


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