+ Reply to Thread
Results 1 to 4 of 4

looking for correct syntax

  1. #1
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    looking for correct syntax

    trying to write a formula in a VB to some cells:
    Please Login or Register  to view this content.
    This is what I have and is returning a run-time error. Anyone know how I should be writing this?
    Last edited by adsxvii; 02-10-2009 at 01:40 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: looking for correct syntax

    Assuming kk is a numerical value my only point would be:

    count your parentheses... ;-)

    =IF(ISNA(VLOOKUP(...)),..,VLOOKUP(....))

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: looking for correct syntax

    To debug is divine.

    Set a string variable equal to the formula, then print it to the Immediate window before it gets stuck in a cell. If you see what's wrong there, you can fix it; if not, paste it into a cell and let Excel tell you what's wrong.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-15-2007
    Posts
    53

    Re: looking for correct syntax

    Thanks Fixed

+ 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