Reganovski
New Member
- Joined
- Nov 11, 2012
- Messages
- 9
I recorded the below macro trying to figure out what needs to be done for my excel sheet
My sheet has 7,000 rows on it and I want a macro to do the follow:
1) Find a number I put in i.e. 510038 has to be an exact match
2) On the cell next to it, I want it to automatically mark it "Y"
3) I will be doing this 7000 times as its a kinda of attendance sheet.
The below does what I want but naturally I need to put in different numbers and selecting/putting the Y in the correct cell.
Thanks in advance
Sub Macro1()
Cells.Find(What:="510038", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("F27").Select
ActiveCell.FormulaR1C1 = "Y"
Range("F28").Select
ActiveWorkbook.Save
End Sub
My sheet has 7,000 rows on it and I want a macro to do the follow:
1) Find a number I put in i.e. 510038 has to be an exact match
2) On the cell next to it, I want it to automatically mark it "Y"
3) I will be doing this 7000 times as its a kinda of attendance sheet.
The below does what I want but naturally I need to put in different numbers and selecting/putting the Y in the correct cell.
Thanks in advance
Sub Macro1()
Cells.Find(What:="510038", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("F27").Select
ActiveCell.FormulaR1C1 = "Y"
Range("F28").Select
ActiveWorkbook.Save
End Sub
Last edited: