View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default why I got error value after running this code?

cells(2,3).formula = "=vlookup(A2,sheet1!C:F," & cnum1 - cnum0 + 1 & ",0)"


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Bao Guangya" wrote in message
...
dim cnum1,cnum0

cnum1 = 6
cnum0 = 3
cells(2,3).formula = "=vlookup(A2,sheet1!C:F,cnum1 - cnum0 + 1,0)"