brianallen0
New Member
- Joined
- Jul 21, 2015
- Messages
- 11
Hi,
Ive search and tried to modify several variations of vba code I was able to find on the internet but cant seem to get the macro to work the way I want it. I basically have several rows with data and beneath is a subtotal line in a different column. I basically just need the code to read column D and group every row that is between these blank rows. All help is greatly appreciated example below.
Thanks!
Before
[TABLE="width: 500"]
<tbody>[TR]
[TD]Blank[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blank[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After
[TABLE="width: 500"]
<tbody>[TR]
[TD]Blank[/TD]
[/TR]
[TR]
[TD]Group[/TD]
[/TR]
[TR]
[TD]Blank[/TD]
[/TR]
</tbody>[/TABLE]
Ive search and tried to modify several variations of vba code I was able to find on the internet but cant seem to get the macro to work the way I want it. I basically have several rows with data and beneath is a subtotal line in a different column. I basically just need the code to read column D and group every row that is between these blank rows. All help is greatly appreciated example below.
Thanks!
Before
[TABLE="width: 500"]
<tbody>[TR]
[TD]Blank[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Numbers[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Blank[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After
[TABLE="width: 500"]
<tbody>[TR]
[TD]Blank[/TD]
[/TR]
[TR]
[TD]Group[/TD]
[/TR]
[TR]
[TD]Blank[/TD]
[/TR]
</tbody>[/TABLE]