'Move "Admin Fee" to name field and populate field cell with current tax period
Range("D2").Select
Range(Selection, Selection.End(xlDown)).Select
Set AFFound = Cells.Find(What:="Admin Fee", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not AFFound Is Nothing Then
' the code you want to have if you find it
Cells.Find(What:="Admin Fee", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Selection.Cut
ActiveCell.Offset(0, 2).Select
ActiveCell.Value = "1"
ActiveCell.Offset(0, -3).Select
ActiveSheet.Paste
LR = ActiveCell.row - 1
ActiveCell.Offset(0, 1).Select
ActiveCell.Formula = "=MODE(D2:D" & LR & ")"
ActiveCell.Select
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlTop
End With
End If
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE