Disable all warnings with Application.DisplayAlerts = False

KittyS

New Member
Joined
May 25, 2012
Messages
18
Hello users!
I have some slicers connected to graphs in a spread sheet. When I clear a slicer filter I get the warning: "the maximum number of data series per chart is 255". I don't need to rearrange my charts because of this, I just want to disable this warning. I tried several things using Private Subs, such as these:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.DisplayAlerts = False
End Sub
Private Sub Worksheet_PivotTableAfterValueChange(ByVal TargetPivotTable As PivotTable, ByVal TargetRange As Range)
Application.DisplayAlerts = False
End Sub

not only in the worksheet, but also in the workbook. Yet the warning keeps coming. How can I get rid of it completely? :confused:

Thanks so much for helping me out!

Kitty
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hello Kitty,

You could try to insert your instruction at the workbook level ... i.e. in the module ThisWorkbook ... :wink:

Code:
Private Sub Workbook_Open()
   Application.DisplayAlerts = False
End Sub

HTH
 
Upvote 0
Hi James,

I tried it, but unfortunately to no avail.... warning keeps coming. :eek:

Kitty

I should have added ... that once you have added this instruction ...
It will become available ... only after saving your workbook ... and closing it ...
Indeed, the instruction loads itself ... when you re-open the workbook ...

HTH
 
Upvote 0
Unfortunately... saving the workbook with this code and re-opening also do not suppress the warning... :(

Grtz,

Kitty
 
Upvote 0
Sorry this does not work ... :(

Alternative ... to be tested ...not ideal ... is to use SendKeys "~"

HTH
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,397
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top