Remove SubTotals Confirmation

M

Mike H.

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?
 
J

Jim Thomlinson

try
application.displayalerts = false
Application.EnableEvents = False
Selection.RemoveSubtotal
application.displayalerts = true
Application.EnableEvents = true
 
M

Mike H.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calculating subtotals 22
SubTotals 3
subtotals 1
Only Copy Subtotals 8
Removing confirmation POP from excel 4
Round subtotals to two decimal places 0
Issue with nested data subtotals 3
Unmatched rows 0

Top