networkdays error and vb

greglange

New Member
Joined
Mar 14, 2002
Messages
2
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
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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.
 
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top