I am using excel 2000. I have created a macro that will clear my "Invoice"
and post pertinent information to the first row of an "Invoice Log" that I
have created in the same workbook, but on another tab. I would like to have
the macro do a "VLOOKUP"? or some other function to post the next invoice
number into the invoice sheet and post the pertinent data to the appropriate
invoice# line on the Log sheet when I activate the macro and clear the
invoice sheet. I hope this makes sense. I don't know how to incorporate an
excel function like "LOOKUP" into a macro.

Signature
excelguy
OssieMac - 21 Mar 2008 00:41 GMT
I don't understand enough of your question to fully answer it but if you
record a macro while entering a VLOOK function then it should put you on the
right track.

Signature
Regards,
OssieMac
> I am using excel 2000. I have created a macro that will clear my "Invoice"
> and post pertinent information to the first row of an "Invoice Log" that I
[quoted text clipped - 4 lines]
> invoice sheet. I hope this makes sense. I don't know how to incorporate an
> excel function like "LOOKUP" into a macro.
Ron Rosenfeld - 21 Mar 2008 00:56 GMT
>I am using excel 2000. I have created a macro that will clear my "Invoice"
>and post pertinent information to the first row of an "Invoice Log" that I
[quoted text clipped - 4 lines]
>invoice sheet. I hope this makes sense. I don't know how to incorporate an
>excel function like "LOOKUP" into a macro.
Application.worksheetfunction.vlookup(args....)
--ron
Don Guillett - 21 Mar 2008 15:00 GMT
Instead, I would recommend using FIND. Look in the vba help index.

Signature
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
>I am using excel 2000. I have created a macro that will clear my "Invoice"
> and post pertinent information to the first row of an "Invoice Log" that I
[quoted text clipped - 7 lines]
> an
> excel function like "LOOKUP" into a macro.