Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
identifying subtotals
Look for a cell in that row that has a formula that starts with "=subtotal("?
Darren Ludlam wrote: How can I dynamically identify if a row is a subtotal -- Dave Peterson |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
identifying subtotals
Providing that you have a continuous stream of data in row "A" (No empty
cells!) then the following will work. If you do have gaps then you may need to use the following as the selection method Range(Range("A1"), Range("A50000").end(xlup).Select May be someone else can help out here, in the following sub what should i be declaring "rng" as ? Sub totalRows() Dim rng As Variant Range(Range("A1"), Range("A1").End(xlDown)).Select For Each rng In Selection If Right(rng.Value, 5) = "Total" Then MsgBox rng.Row & " is a subTotal row" End If Next rng End Sub "Darren Ludlam" wrote in message ... How can I dynamically identify if a row is a subtotal |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
identifying subtotals
dim rng as range
seems to make a lot of sense here. Stuart wrote: Providing that you have a continuous stream of data in row "A" (No empty cells!) then the following will work. If you do have gaps then you may need to use the following as the selection method Range(Range("A1"), Range("A50000").end(xlup).Select May be someone else can help out here, in the following sub what should i be declaring "rng" as ? Sub totalRows() Dim rng As Variant Range(Range("A1"), Range("A1").End(xlDown)).Select For Each rng In Selection If Right(rng.Value, 5) = "Total" Then MsgBox rng.Row & " is a subTotal row" End If Next rng End Sub "Darren Ludlam" wrote in message ... How can I dynamically identify if a row is a subtotal -- Dave Peterson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
identifying subtotals
How can I dynamically identify if a row is a subtotal
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) | Excel Discussion (Misc queries) | |||
Original subtotals should not be within nested subtotals in excel | Excel Worksheet Functions | |||
How do I copy an outline w/ subtotals & paste just the subtotals | Excel Discussion (Misc queries) | |||
Problem with nested subtotals, placing secondary subtotals BELOW . | Excel Discussion (Misc queries) | |||
why are nested subtotals coming out below outer subtotals? | Excel Worksheet Functions |