Selecting Subtotals Rowls only

goofymuck

New Member
Joined
Apr 26, 2011
Messages
3
Hello,

I'm a newbie to VBA and I am having difficulty selecting only the subtotal rows after I've used the subtotal function in excel. I need to highlight the subtotal row a yellow. These subtotal rows are dynamic...

Any help would be much appreciated.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Are the subtotal rows not always in the same row? Can you explain a little more what you're trying to accomplish?
 
Upvote 0
The data I'm working with has a unique field that repeats for certain records. Which I have subtotaled by that unique field. For example

Pans silver 2
Pans copper 1
total pans 3

The recordset is dynamic so the total rows will never be on the same row number. I want to highlight the entire total row. hopefully i've explained this a little better...
 
Upvote 0
Will there always be a cell in a specific column that reads "Total Pans" in the row you want to highlight?
 
Upvote 0
I run this code through Access VBA, formatting a qry dumped into excel and no the only thing that will identifiy that subtotal row is the word "Total" joined with the category i've subtotated..
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top