Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IPmt Function Example (2003)

    The value passed to the Type argument for the IPmt function in the example is either VbYes=6 or VbNo=7 while help for the IPmt function states that it accepts 0 or 1. Where's the catch?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: IPmt Function Example (2003)

    If you read the example carefully, you'll see that

    If PayType = vbNo Then PayType = BEGINPERIOD Else PayType = ENDPERIOD

    where ENDPERIOD = 0, BEGINPERIOD = 1, so vbNo is converted to 1 and vbYes to 0.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IPmt Function Example (2003)

    <img src=/S/doh.gif border=0 alt=doh width=15 height=15>
    Thank you Hans <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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