Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA:Excel removing subtotal buttons 2

Status
Not open for further replies.

RSJohnson

Programmer
Jan 30, 2004
45
US
I have to create a lot of budget spreadsheets with three levels of subtotals. The final products cannot have the buttons in the left margin that allow you to expand and contract levels. Is there a way to remove these buttons either with code or some other way?
 
Hi semaphore,

In your worksheet ..

Data > Group and Outline > Clear Outline

In code ..

Code:
[blue]Selection.ClearOutline[/blue]

Enjoy,
Tony

------------------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading FAQ222-2244 before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top