punkin0601
New Member
- Joined
- Aug 16, 2005
- Messages
- 26
I am trying to write a macro with a VLOOKUP formula. I currently have:
Dim cell As Range
Cells.EntireRow.Hidden = False
Range(A15:A & Range("A65536").End(xlUp).Row).Select
For Each cell In Selection
If Left(cell.Text,1) = "1" Then Cells(cell.Row, "b") = "=VLOOKUP(
RC[-1],'VB Input'!R4C5:R824C6,4,0)"
The numbers of rows may vary each time I run the macro. How do I adjust my VLOOKUP formula to accomodate this issue.
Thank you in advance for your help!
Dim cell As Range
Cells.EntireRow.Hidden = False
Range(A15:A & Range("A65536").End(xlUp).Row).Select
For Each cell In Selection
If Left(cell.Text,1) = "1" Then Cells(cell.Row, "b") = "=VLOOKUP(
RC[-1],'VB Input'!R4C5:R824C6,4,0)"
The numbers of rows may vary each time I run the macro. How do I adjust my VLOOKUP formula to accomodate this issue.
Thank you in advance for your help!