Mike Guest98
New Member
- Joined
- Jun 4, 2018
- Messages
- 42
I used the record VBA on this project but the program is not doing everything I need it to do. This is a small sample of a much bigger sheet2 that we’re using. Thank you in advance for any help you can provide.
Record output
We use VBA code (can provide if that helps) to find any number(s) in the cell range F1:F20. There are 3 found numbers, F3 with a 6.00, F12 with a 3.00 and F16 with a 8.00. We use the adjacent cell to the left of each found number cell as a reference number (1 to 10).
Searching cells D23,F23,H23,J23,L23,D26,F26,H26,J26,L26 for the reference number place the found number (eg. 8.00 from F16) in the appropriate cell, J27.
That’s it.
Thank you for all your help.
Record output
Code:
Sub Macro ()
Range(“D24”).Select
ActiveCell.FormulaR1C1 = “6”
Range(“F24”).Select
ActiveCell.FormulaR1C1 = “3”
Range(“J27”).Select
ActiveCell.FormulaR1C1 = “8”
End Sub
We use VBA code (can provide if that helps) to find any number(s) in the cell range F1:F20. There are 3 found numbers, F3 with a 6.00, F12 with a 3.00 and F16 with a 8.00. We use the adjacent cell to the left of each found number cell as a reference number (1 to 10).
Searching cells D23,F23,H23,J23,L23,D26,F26,H26,J26,L26 for the reference number place the found number (eg. 8.00 from F16) in the appropriate cell, J27.
That’s it.
Thank you for all your help.