Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: networkdays error and vb

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    When I open an excel file using vb code through MS access, the networkdays function in my spreadsheet gives me an error (#value). When I open the same file by opening excel from the start menu and then opening the file the networkdays returns the correct value. Any suggestions?
    Thanks for your help

  2. #2
    MrExcel MVP Anne Troy's Avatar
    Join Date
    Feb 2002
    Location
    Westwood NJ
    Posts
    2,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    A little birdie told me that if you have BOTH the analysis toolpak AND the analysis toolpak for VBA loading as add-ins, this could cause the problem. Apparently, networkdays will run as a worksheet function with the analysis toolpak running, but if the VBA one is running, it will try to use code, which is (I'm told) not desireable for your use.
    ~Anne Troy

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    So how do I get around this problem? Does anyone have any vb script that can get me around this problem, or can I turn on and off the add-ins when I need them?

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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