Jumat, 25 Januari 2013

[ExcelVBA] Using VLOOKUP from Within a VBA Program

 

I use VLOOKUP to locate a value from within a VBA program. What I need is the row number where the value was found. To get the row number, I added row numbers in column 2 to the searched sheet. My statement looks like this:

Range("D2").Formula = "=VLOOKUP(G2,StatTable,2,FALSE)"

I wonder if there is a better way to get the row number.

Any suggestions?
Thanks,
Michael Trombetta

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
----------------------------------
Be sure to check out TechTrax Ezine for many, free Excel VBA articles! Go here: http://www.mousetrax.com/techtrax to enter the ezine, then search the ARCHIVES for EXCEL VBA.

----------------------------------
Visit our ExcelVBA group home page for more info and support files:
http://groups.yahoo.com/group/ExcelVBA

----------------------------------
More free tutorials and resources available at:
http://www.mousetrax.com

----------------------------------
.

__,_._,___

Tidak ada komentar:

Posting Komentar