Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Formatting rows using SubTotal

I want to color the sub-total row and insert a row after the subtotal row.
What vba code locates a sub-total row since the row names change every time
the report is run?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Formatting rows using SubTotal

If the subtotal row is always the last row, you can capture the last row
with this:

LastRow=cells(rows.count,1),end(xlup).rows (assuming that there is data in
column 1)
cells(Lastrow,1).value = new stuff in column A
cells(Lastrow,2).value = more new stuff in column B

Glen
ps use the Conditional Formatting feature to automaticlly color the SubTotal
row


"SharonInGa" wrote in message
...
I want to color the sub-total row and insert a row after the subtotal row.
What vba code locates a sub-total row since the row names change every
time
the report is run?






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Formatting rows using SubTotal

I run sub-total from the Command bar setting the sub-total to break on the
type of account: cash, equity, .... The number of accounts change each
month so a subtotal for one month may be listed on row 10 and for another
month may be listed on row 30.




"Glen Mettler" wrote:

If the subtotal row is always the last row, you can capture the last row
with this:

LastRow=cells(rows.count,1),end(xlup).rows (assuming that there is data in
column 1)
cells(Lastrow,1).value = new stuff in column A
cells(Lastrow,2).value = more new stuff in column B

Glen
ps use the Conditional Formatting feature to automaticlly color the SubTotal
row


"SharonInGa" wrote in message
...
I want to color the sub-total row and insert a row after the subtotal row.
What vba code locates a sub-total row since the row names change every
time
the report is run?







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
subtotal formatting DC2149 Excel Discussion (Misc queries) 0 December 13th 09 04:04 PM
subtotal formatting ab3d4u Excel Worksheet Functions 1 August 30th 07 11:04 PM
Auto subtotal every 100 rows Tiffany Excel Discussion (Misc queries) 3 June 20th 07 01:39 PM
formatting subtotal lines david4141955 Excel Discussion (Misc queries) 2 August 14th 06 10:23 PM
using SUBTOTAL() on rows that have been hidden doco Excel Worksheet Functions 2 June 7th 05 07:18 PM


All times are GMT +1. The time now is 10:24 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"