Re: Problem with my function
I'm pretty sure that's actually VBA that you are working with but this work.
VB Code:
Function ErlBLines(blockingProbablity as Double, traffic as Double,Optional otherVariable As Something = 0) as Double
...
...
End Function
Re: Problem with my function
I thought I could help....I opened Excel, I wrote basically the same as what was posted above, I rejoiced in my success, I came back to the webpage, and it had already been answered :(
Nice work Veritas :)
Re: Problem with my function
Thanks alot, that does the trick. I did a little bit of programming in vb like 5 years ago for HS, but i've forgotten it all so now i'm teaching myself it on the job. Got to love google and the forums 2.
Yea VBA sounds right, but i don't know what the difference is.
Re: Problem with my function
It is actually VBA, but unfortunately that isn't made particularly obvious (even the About screen gives the impression it is VB). There are lots of similarities, but there are also some differences (particularly when it comes to controls) which can easily cause confusion.
As such, this thread belongs in our Office Development/VBA forum, and I have moved it there.
As you now have this question sorted out, could you please do us a little favour, and mark the thread as Resolved?
(this saves time reading for those of us who like to answer questions, and also helps those who search to find answers)
You can do this by clicking on "Thread tools" just above the first post in this thread, then "Mark thread resolved".