This is probably a really stupid question but for some reason I cannot get my variable to populate correctly.
I need to get the value of a cell into a variable. This is what I am using:
carline = Cells(rnum, 1).Value
But everytime it keeps coming up empty. rnum is = 2 so it should be taking the value in A2 but for some reason it is not. I tried selecting the cell first and that didn't work either.
Cells(rnum, 1).Select
carline = Cells(rnum, 1).Value
When I do that I get an application error.
Can anybody help?
I need to get the value of a cell into a variable. This is what I am using:
carline = Cells(rnum, 1).Value
But everytime it keeps coming up empty. rnum is = 2 so it should be taking the value in A2 but for some reason it is not. I tried selecting the cell first and that didn't work either.
Cells(rnum, 1).Select
carline = Cells(rnum, 1).Value
When I do that I get an application error.
Can anybody help?