Alex O
Active Member
- Joined
- Mar 16, 2009
- Messages
- 345
- Office Version
- 365
- Platform
- Windows
Can someone help me with a macro that will check H and I and if there's a value present, insert 1 row down, copy and paste all of the data from the current row and change the value in E from a 2 to a 3?
Many Thanks,
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 95px"><COL style="WIDTH: 118px"><COL style="WIDTH: 68px"><COL style="WIDTH: 79px"><COL style="WIDTH: 216px"><COL style="WIDTH: 96px"><COL style="WIDTH: 89px"><COL style="WIDTH: 79px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD></TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD><TD>I</TD></TR><TR style="HEIGHT: 67px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD style="TEXT-ALIGN: left; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Account</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Original Assignment Batch (mo/yr)</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Report Date </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Code *as of report date </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Description </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Amount </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Commission </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Legal Fees </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD style="TEXT-ALIGN: left">690152</TD><TD style="TEXT-ALIGN: center">7/2011</TD><TD style="TEXT-ALIGN: center">9/15/2011</TD><TD style="TEXT-ALIGN: center">1</TD><TD>Assigned to agency by AGI </TD><TD></TD><TD style="TEXT-ALIGN: right">- </TD><TD style="TEXT-ALIGN: right">- </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccffff">691674</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">7/2011</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">9/15/2011</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">2</TD><TD style="BACKGROUND-COLOR: #ccffff">Collected from debtor </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">150.00 </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">(54.00)</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">- </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD style="TEXT-ALIGN: left">702057</TD><TD style="TEXT-ALIGN: center">7/2011</TD><TD style="TEXT-ALIGN: center">9/15/2011</TD><TD style="TEXT-ALIGN: center">2</TD><TD>Collected from debtor </TD><TD style="TEXT-ALIGN: right">500.00 </TD><TD style="TEXT-ALIGN: right">(90.00)</TD><TD style="TEXT-ALIGN: right">- </TD></TR></TBODY></TABLE>
Many Thanks,
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 95px"><COL style="WIDTH: 118px"><COL style="WIDTH: 68px"><COL style="WIDTH: 79px"><COL style="WIDTH: 216px"><COL style="WIDTH: 96px"><COL style="WIDTH: 89px"><COL style="WIDTH: 79px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD></TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD><TD>I</TD></TR><TR style="HEIGHT: 67px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">12</TD><TD style="TEXT-ALIGN: left; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Account</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Original Assignment Batch (mo/yr)</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Report Date </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Code *as of report date </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Description </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Amount </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Commission </TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #339966; COLOR: #ffffff; FONT-WEIGHT: bold">Legal Fees </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">13</TD><TD style="TEXT-ALIGN: left">690152</TD><TD style="TEXT-ALIGN: center">7/2011</TD><TD style="TEXT-ALIGN: center">9/15/2011</TD><TD style="TEXT-ALIGN: center">1</TD><TD>Assigned to agency by AGI </TD><TD></TD><TD style="TEXT-ALIGN: right">- </TD><TD style="TEXT-ALIGN: right">- </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">14</TD><TD style="TEXT-ALIGN: left; BACKGROUND-COLOR: #ccffff">691674</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">7/2011</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">9/15/2011</TD><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #ccffff">2</TD><TD style="BACKGROUND-COLOR: #ccffff">Collected from debtor </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">150.00 </TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">(54.00)</TD><TD style="TEXT-ALIGN: right; BACKGROUND-COLOR: #ccffff">- </TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">15</TD><TD style="TEXT-ALIGN: left">702057</TD><TD style="TEXT-ALIGN: center">7/2011</TD><TD style="TEXT-ALIGN: center">9/15/2011</TD><TD style="TEXT-ALIGN: center">2</TD><TD>Collected from debtor </TD><TD style="TEXT-ALIGN: right">500.00 </TD><TD style="TEXT-ALIGN: right">(90.00)</TD><TD style="TEXT-ALIGN: right">- </TD></TR></TBODY></TABLE>