Results 1 to 6 of 6
  1. #1
    aisa.imn98 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2021
    Posts
    3

    NPV Macro Code in VBA

    Hello, has anyone written code in VBA to run a macro to calculate net present value in Access? Seems like Access 2016 does not have a NPV function, or just mine has a problem since I couldn't find anyone facing this problem as I searched.


    Click image for larger version. 

Name:	2021-04-23 19.44.19.jpg 
Views:	15 
Size:	27.5 KB 
ID:	45074

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    9,198
    Pretty sure I have but I might have lost it when my last hd crashed. However, I think I posted it here somewhere. Try searching the forum while I look around.

    Found it

    https://www.accessforums.net/showthr...+present+value
    - "doesn't work" doesn't help. Implement changes in copies of your database.
    Iím telling everyone it's good to eat dried grapes. Itís all about raisin awareness.

  3. #3
    aisa.imn98 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2021
    Posts
    3
    Quote Originally Posted by Micron View Post
    Pretty sure I have but I might have lost it when my last hd crashed. However, I think I posted it here somewhere. Try searching the forum while I look around.

    Found it

    https://www.accessforums.net/showthr...+present+value
    I already read this thread but it's just explaining why the creator's NPV didn't work. And the code is for testing the the existing function.

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    9,198
    No idea what you mean. I created it. Why would I post it if it didn't work?
    And the code is for testing the the existing function.
    You lost me on that one too.
    - "doesn't work" doesn't help. Implement changes in copies of your database.
    Iím telling everyone it's good to eat dried grapes. Itís all about raisin awareness.

  5. #5
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    1,946
    Quote Originally Posted by aisa.imn98 View Post
    I already read this thread but it's just explaining why the creator's NPV didn't work. And the code is for testing the the existing function.
    Did you look at the zip file in the last post, I suspect not.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  6. #6
    aisa.imn98 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2021
    Posts
    3
    sorry I didn't notice the zip file, thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Can I run a VBA code from a macro?
    By geotrouvetout67 in forum Programming
    Replies: 4
    Last Post: 08-22-2019, 02:59 PM
  2. Macro Code Help
    By Chris12 in forum Access
    Replies: 4
    Last Post: 05-28-2019, 11:09 AM
  3. Help with NPV Macro Code in VBA
    By BigNasty in forum Macros
    Replies: 6
    Last Post: 11-21-2016, 10:39 PM
  4. VBA code/Macro help please.
    By Davidyam in forum Access
    Replies: 1
    Last Post: 02-26-2012, 09:59 PM
  5. Run a Embedded Macro from VBA Code
    By sabre1 in forum Programming
    Replies: 3
    Last Post: 02-25-2011, 10:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums