View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] michaellm@gmail.com is offline
external usenet poster
 
Posts: 11
Default How to define table array in Vlookup function using VBA?

there's one integer variable, j.
I want to use VLookup function here, and the table Array parameter
should be Column j to j+1
But how to write this code in VBA?
Application.VLookUp(Cells(1,1), COLUMNS(j,j+1), 2 FALSE) ???
It report erros like above.
Thanks.