Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VLOOKUP WITH MACRO

How I can use the VLOOKUP function with Excel macro.
thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default VLOOKUP WITH MACRO

Hello yusuf
You may use eiher:
Evaluate("=VLOOKUP(C3,A1:B5,2,FALSE)")
or
Application.WorksheetFunction.VLookup(Range("C3"), Range("A1:B5"), 2, False)

HTH
Cordially
Pascal


"yusuf" a écrit dans le message de news:
...
How I can use the VLOOKUP function with Excel macro.
thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VLOOKUP WITH MACRO

Hi Papou
Thank you for helping me, I try to run the following macro but still give me
error please if you can help me in this matter.

Sub Test()
B2 = Application.WorksheetFunction.VLookup(Range("A:A") ,
Range("[bank_database.xls]Sheet1!$A:$B"), 2, False)
End Sub

thanks you
"papou" wrote:

Hello yusuf
You may use eiher:
Evaluate("=VLOOKUP(C3,A1:B5,2,FALSE)")
or
Application.WorksheetFunction.VLookup(Range("C3"), Range("A1:B5"), 2, False)

HTH
Cordially
Pascal


"yusuf" a écrit dans le message de news:
...
How I can use the VLOOKUP function with Excel macro.
thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Macro? blucajun Excel Worksheet Functions 0 June 27th 08 10:23 PM
Vlookup Macro Joey Excel Discussion (Misc queries) 0 April 11th 08 02:36 AM
VBA Macro for VLOOKUP Myrna Rodriguez[_3_] Excel Programming 0 December 13th 05 09:22 PM
VLOOKUP MACRO JOHN YOUNG Excel Programming 2 July 23rd 04 10:21 PM
Need a macro to do what this VLOOKUP does Tim Excel Programming 5 February 12th 04 04:41 PM


All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"