It says in the help that vlookup can be used in visual
basic, what I am actually doing is in the spreadsheet
looking to the top of the column reading C2 then going to
another spreadsheet and finding that value and giving the
value in the col next to it, as vlookup does in excel.
Then if it is the same a macro starts which deletes the
original row and moves the rest of the table along. I
tried to do it in excel but once the macro has run the
cell reference for C2 is lost, so I thought I could try it
in a macro. Any ideas?
"The help"? The help for Excel? If that is what you mean, then it's
referring to the fact that you can access this function (and any worksheet
function) from VBA. If you are indeed writing in VBA (i.e., creating a macro
from within Excel itself) then you'd be much better served by asking in the
proper group. I recommend microsoft.public.excel.programming.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.