Jumat, 25 Januari 2013

RE: [ExcelVBA] Using VLOOKUP from Within a VBA Program

 

Use match

Best Regards
David Grugeon
Excel VBA Group Moderator

-----Original Message-----
From: ExcelVBA@yahoogroups.com [mailto:ExcelVBA@yahoogroups.com] On Behalf
Of mickey11030
Sent: Saturday, 26 January 2013 1:18 PM
To: ExcelVBA@yahoogroups.com
Subject: [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

------------------------------------

----------------------------------
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

----------------------------------Yahoo! Groups Links

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
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