Groups of imported records have name of account on subtotal line only. Need to fill blank account name cells for each record in group. Have been able to fill down from header but not up from subtotal.
e.g.:
Need to get ABC to fill UP in column A for each group of records.
Example:
A B C
xxx xxxx
yyy yyyy
zzz zzzz
---- ----- ----
ABC xyz xxyyzz
A B C
ABC xxx xxxx
ABC yyy yyyy
ABC zzz zzzz
---- ----- ----
ABC xyz xxyyzz
Following code works fine to fill DOWN if acct name is on TOP of group as a header, but I can't get the reverse to work (filling UP) if acct name (ABC)is on bottom as subtotal, even if I change the offset to (1,0).
Sub FillUp()
For Selection
If Trim(Cell)="" And Cell.Row>1 Then
Cell.Value = Cell.offset(-1,0).value
End If
Next Cell
End Sub
Any help greatly appreciated
JDTTEK
e.g.:
Need to get ABC to fill UP in column A for each group of records.
Example:
A B C
xxx xxxx
yyy yyyy
zzz zzzz
---- ----- ----
ABC xyz xxyyzz
A B C
ABC xxx xxxx
ABC yyy yyyy
ABC zzz zzzz
---- ----- ----
ABC xyz xxyyzz
Following code works fine to fill DOWN if acct name is on TOP of group as a header, but I can't get the reverse to work (filling UP) if acct name (ABC)is on bottom as subtotal, even if I change the offset to (1,0).
Sub FillUp()
For Selection
If Trim(Cell)="" And Cell.Row>1 Then
Cell.Value = Cell.offset(-1,0).value
End If
Next Cell
End Sub
Any help greatly appreciated
JDTTEK