Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default 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
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
Problem accessing binary data from mysql data base Don Excel Programming 0 June 22nd 07 05:52 PM
Accessing List Data quag2000 Excel Discussion (Misc queries) 1 May 12th 06 09:14 PM
Accessing data from combo box from VBA rmcompute Excel Programming 2 November 21st 05 01:08 AM
accessing data in a cell cjsmith22[_5_] Excel Programming 2 November 10th 05 10:54 PM
accessing data from an array Tom Ogilvy Excel Programming 5 September 9th 03 04:21 AM


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