Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Method 'Display Alerts' of object '_Application' failed

Hi - for some reason this error (Method 'Display Alerts' of object
'_Application' failed) comes up when I execute a macro on a spreadsheet that
I have posted on my website. The error does not come up, however, when I
download the spreadsheet to my desktop, open the spreadsheet, and execute the
macro. The error comes up only when I open the spreadsheet and run it from
my Internet Explorer browser (the spreadsheet appears as if it is actually in
Internet Explorer, if that makes sense).

Any idea on why this would happen? Below is the code (I put in a comment on
the line where the error is occuring):

Sub cntryformula()

Dim cntrydayrange
Dim cntryreference

Application.DisplayAlerts = False 'this is where error is
occuring
Sheets("Processed Rate Sheet").delete
Application.DisplayAlerts = True
Sheets("Rate Sum step 1").Copy Befo=Sheets(6)
Sheets("Rate Sum step 1 (2)").Name = "Processed Rate Sheet"

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Method 'Display Alerts' of object '_Application' failed

Maybe since you're in MSIE, application refers to MSIE--not Excel.

For what it's worth, I try to make it so that I never open a workbook within
MSIE.

If that's ok...

How to Configure Internet Explorer to Open Office
Documents in the Appropriate Office Program Instead of in Internet Explorer
http://support.microsoft.com/?scid=162059



Linking to specific cells in pivot table wrote:

Hi - for some reason this error (Method 'Display Alerts' of object
'_Application' failed) comes up when I execute a macro on a spreadsheet that
I have posted on my website. The error does not come up, however, when I
download the spreadsheet to my desktop, open the spreadsheet, and execute the
macro. The error comes up only when I open the spreadsheet and run it from
my Internet Explorer browser (the spreadsheet appears as if it is actually in
Internet Explorer, if that makes sense).

Any idea on why this would happen? Below is the code (I put in a comment on
the line where the error is occuring):

Sub cntryformula()

Dim cntrydayrange
Dim cntryreference

Application.DisplayAlerts = False 'this is where error is
occuring
Sheets("Processed Rate Sheet").delete
Application.DisplayAlerts = True
Sheets("Rate Sum step 1").Copy Befo=Sheets(6)
Sheets("Rate Sum step 1 (2)").Name = "Processed Rate Sheet"


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Method 'Display Alerts' of object '_Application' failed

There's this on the microsoft website:

http://support.microsoft.com/default...b;en-us;165435

From memory, the functioning of Excel is restricted when opening within
Internet explorer.

Worth posting this on the IE newsgroup.

--
www.alignment-systems.com


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
Method 'COMAddIns' of object '_Application' failed Samko Excel Programming 0 January 23rd 05 06:11 PM
1004 Method 'COMAddIns' of object '_Application' failed matt Excel Programming 0 December 15th 03 05:23 PM
1004 method 'COMAddIns' of object '_Application' failed matt Excel Programming 0 December 15th 03 02:32 PM
Method ~ of Object ~ Failed. Joan Excel Programming 5 August 26th 03 08:13 PM
Method 'ActivePrinter' of object '_Application' failed kiat Excel Programming 0 August 18th 03 03:45 PM


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