![]() |
|
#2
|
||||
|
||||
|
Hi Wrighty,
Try: Code:
Sub PropagateAcctIDs()
Application.ScreenUpdating = False
Dim LastRow As Long, i As Long, StrAcct As String
With ActiveSheet
LastRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
For i = 1 To LastRow
If Cells(i, 9).Value = "Account Number" Then
StrAcct = Cells(i, 10).Value
ElseIf IsDate(Cells(i, 8).Value) Then
Cells(i, 13).Value = StrAcct
ElseIf Cells(i, 1).Value = "Client Name" Then
With Cells(i, 13)
.Value = "ACCOUNT NUMBER"
.Font.Bold = True
End With
End If
Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macro or routine required | evanhughes | Outlook | 0 | 11-18-2011 02:56 AM |
VBA code from Excel 2007 in Excel 2010
|
csam63 | Excel Programming | 1 | 10-07-2011 10:46 AM |
Formula to select description when code is entered
|
Natasha | Excel | 1 | 09-25-2011 12:59 PM |
| Formula Help Required | OTPM | Excel | 6 | 08-31-2011 02:58 AM |
Need Macro or Formula Help
|
mbocian | Excel | 2 | 04-28-2011 02:04 AM |