+ Reply to Thread
Results 1 to 2 of 2

why I got error value after running this code?

  1. #1
    Bao Guangya
    Guest

    why I got error value after running this code?

    dim cnum1,cnum0

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



  2. #2
    Bob Phillips
    Guest

    Re: 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" <[email protected]> wrote in message
    news:%[email protected]...
    > dim cnum1,cnum0
    >
    > cnum1 = 6
    > cnum0 = 3
    > cells(2,3).formula = "=vlookup(A2,sheet1!C:F,cnum1 - cnum0 + 1,0)"
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1