Sub a()
Dim x As Long
Dim d1 As Long, d2 As Long
d1 = DateSerial(2000, 1, 1)
d2 = DateSerial(2002, 1, 1)
x = Application.Evaluate("=NETWORKDAYS(" & d1 & "," & d2 & ")")
Debug.Print x
End Sub
Sub a()
Dim x As Long
Dim d1 As Long, d2 As Long
d1 = DateSerial(2000, 1, 1)
d2 = DateSerial(2002, 1, 1)
x = Application.Evaluate("=NETWORKDAYS(" & d1 & "," & d2 & ")")
Debug.Print x
End Sub
Sub a()
Dim x As Long
Dim d1 As Long, d2 As Long
d1 = DateSerial(2000, 1, 1)
d2 = DateSerial(2002, 1, 1)
x = NETWORKDAYS(d1, d2)
Debug.Print x
End Sub
--ron
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.