PC Review


Reply
Thread Tools Rate Thread

DisplayAlerts = False not working for cell overwrite

 
 
iperlovsky
Guest
Posts: n/a
 
      26th Jun 2009

I have the following code for which I continue to receive a cell overwrite
prompt despite my insertion of Application.DisplayAlerts = False. Any
suggestions?

Sub Histo()

Application.DisplayAlerts = False

Application.Run "ATPVBAEN.XLA!Histogram", ActiveSheet.Range("_01"),
ActiveSheet.Range("$FV$34"), _ , False, False, False, False

Application.DisplayAlerts = True

End Sub

 
Reply With Quote
 
 
 
 
iperlovsky
Guest
Posts: n/a
 
      26th Jun 2009

thanks, that worked. so simple.

I appreciate the help.


"Joel" wrote:

> Since you are overwriting the data in the same location clear the old data
> before writing the new data
>
> ActiveSheet.Range("$FV$34").CurrentRegion.Clear
>
> or
> ActiveSheet.Range("$FV$34").CurrentRegion.Clearcontents
>
>
> "iperlovsky" wrote:
>
> > I have the following code for which I continue to receive a cell overwrite
> > prompt despite my insertion of Application.DisplayAlerts = False. Any
> > suggestions?
> >
> > Sub Histo()
> >
> > Application.DisplayAlerts = False
> >
> > Application.Run "ATPVBAEN.XLA!Histogram", ActiveSheet.Range("_01"),
> > ActiveSheet.Range("$FV$34"), _ , False, False, False, False
> >
> > Application.DisplayAlerts = True
> >
> > End Sub
> >

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: DisplayAlerts = False not working for cell overwrite Joel Microsoft Excel Programming 0 26th Jun 2009 02:17 PM
Application.DisplayAlerts = False - Not Working carusoloredana@gmail.com Microsoft Excel Programming 3 1st Mar 2006 08:39 PM
Where to put DisplayAlerts = False Joe Fish Microsoft Excel Programming 2 22nd Oct 2005 09:13 PM
DisplayAlerts = false not working Mark Stephens Microsoft Excel Programming 4 13th Jun 2005 06:05 AM
Re: Can't Set DisplayAlerts to False Mark Driscol Microsoft Excel Programming 0 7th Apr 2004 06:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:18 AM.