Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Insert row above subtotal

I need to insert a row above a subtotal row
[=SUBTOTAL(9,C$1:INDIRECT(CELL("address",OFFSET(C11 ,-1,0))))]

rows 1 - 10 contain data
row 11 = subtotal row 1-10
rows 12 - 15 contain data
row 16 = subtotal 1-15 (Grand Totals)

I need a macro that will insert a row above row 11 - which then becomes row
12 & then repeat as needed ie always insert a row above the subtotal row.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Rows vs SUM() and SUBTOTAL() TKS_Mark Excel Discussion (Misc queries) 0 October 7th 09 07:33 PM
How do I insert a subtotal? Preacher Ted Excel Discussion (Misc queries) 1 April 26th 06 10:49 PM
Insert Subtotal button Victor Delta Excel Worksheet Functions 0 April 14th 06 08:07 PM
Insert a new worksheet after subtotal KReese Excel Worksheet Functions 1 July 20th 05 10:35 PM
Sort, Subtotal, Label Subtotal, Insert row Teak Excel Programming 2 April 8th 04 04:14 PM


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"