Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Accessing data-subtotal via VB
I have a spreadsheet that already has subtotals generated via menu
(Data - Subtotal). Is there a way to get those subtotals via VB without resorting to using the row number? THANKS John |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Accessing data-subtotal via VB
Maybe something like this
LastRow = Cells(Rows.Count, "A").End(xlUp).Row For i = 1 To LastRow If Cells(i, "A").Value Like "*Total*" Then 'do something with the value in the adjacent cell Cells(i, "B").Value End If Next i -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "RocketMan" wrote in message ups.com... I have a spreadsheet that already has subtotals generated via menu (Data - Subtotal). Is there a way to get those subtotals via VB without resorting to using the row number? THANKS John |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem accessing binary data from mysql data base | Excel Programming | |||
Accessing List Data | Excel Discussion (Misc queries) | |||
Accessing data from combo box from VBA | Excel Programming | |||
accessing data in a cell | Excel Programming | |||
accessing data from an array | Excel Programming |