ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove SubTotals Confirmation (https://www.excelbanter.com/excel-programming/414925-remove-subtotals-confirmation.html)

Mike H.

Remove SubTotals Confirmation
 
when I do this:

Application.EnableEvents = False
Selection.RemoveSubtotal

I get a confirmation question dialog box:
Entire Subtotal Row will Be deleted. With OK or Cancel.

I am not sure why this particular sheet gives me that confirmation. I do
type text into some of the empty cells in the subtotals rows but I tested on
other sheets and don't get the confirmation message. Ideas?

Jim Thomlinson

Remove SubTotals Confirmation
 
try
application.displayalerts = false
Application.EnableEvents = False
Selection.RemoveSubtotal
application.displayalerts = true
Application.EnableEvents = true

--
HTH...

Jim Thomlinson


"Mike H." wrote:

when I do this:

Application.EnableEvents = False
Selection.RemoveSubtotal

I get a confirmation question dialog box:
Entire Subtotal Row will Be deleted. With OK or Cancel.

I am not sure why this particular sheet gives me that confirmation. I do
type text into some of the empty cells in the subtotals rows but I tested on
other sheets and don't get the confirmation message. Ideas?


JLGWhiz

Remove SubTotals Confirmation
 
What does the Help dialog say for that alert, or does it give that option?


"Mike H." wrote:

when I do this:

Application.EnableEvents = False
Selection.RemoveSubtotal

I get a confirmation question dialog box:
Entire Subtotal Row will Be deleted. With OK or Cancel.

I am not sure why this particular sheet gives me that confirmation. I do
type text into some of the empty cells in the subtotals rows but I tested on
other sheets and don't get the confirmation message. Ideas?


Mike H.

Remove SubTotals Confirmation
 
There was no help for the message, but Jim's solution solved the problem.
Thanks...


All times are GMT +1. The time now is 04:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com