The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

To stop seeing these ads and get other benefits check This page!

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Excel Forum > Excel VBA Programming


Excel VBA Programming Post questions in this forum if they are related to using Microsoft Excel VBA Programming, Macro's etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26th June 2009, 02:13 PM
iperlovsky
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default DisplayAlerts = False not working for cell overwrite

------ Register to get rid of these "In Post" ads! ------


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 to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
  #2 (permalink)  
Old 26th June 2009, 02:19 PM
Joel
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default RE: DisplayAlerts = False not working for cell overwrite

------ Register to get rid of these "In Post" ads! ------


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 to this post


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 26th June 2009, 02:31 PM
iperlovsky
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Default RE: DisplayAlerts = False not working for cell overwrite

------ Register to get rid of these "In Post" ads! ------


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 to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!
Reply

Bookmarks

Tags
cell, displayalerts, false, overwrite, working

New topics in Excel VBA Programming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On

Forum Jump

The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 12:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent