caritx

New Member
Joined
Dec 1, 2009
Messages
34
I have an excel file with the following data in multiple tabs. This changes daily and i print it every morning.

What I normally do is I add filters
filter by column A to show one group
Highlight the last row Bold
then print
I repeat this process for as many groups and tabs as I have.
The amount of groups and rows change everyday.

I would like a macro or vba that could automatically find the groups based on column A highlight and bold the last cell and print.

Thanks in advance for any help you can offer!

Here is a sample of the data:
<table style="border-collapse: collapse; width: 268pt;" border="0" cellpadding="0" cellspacing="0" width="357"><col style="width: 92pt;" width="123"> <col style="width: 89pt;" width="118"> <col style="width: 87pt;" width="116"> <tbody><tr style="height: 15pt;" height="20"> <td class="xl63" style="height: 15pt; width: 92pt;" height="20" width="123">Column Heading A</td> <td class="xl63" style="border-left: medium none; width: 89pt;" width="118">column heading b</td> <td class="xl63" style="border-left: medium none; width: 87pt;" width="116">column heading c</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl64" style="border-top: medium none; height: 15pt;" height="20">81</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">81</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">86</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">86</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">86</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">87</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">87</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">87</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">92</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">92</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">92</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">96</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">96</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl63" style="border-top: medium none; height: 15pt;" height="20">96</td> <td class="xl65" style="border-top: medium none; border-left: medium none;">02/16/10</td> <td class="xl66" style="border-top: medium none; border-left: medium none;">data</td> </tr> </tbody></table>
 
Last edited:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,214,998
Messages
6,122,639
Members
449,093
Latest member
Ahmad123098

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