No errors in the code. The function directly above it seems fine (and works fine in the spreadshet). I included the first and last lines of the code for this module below:
There are a lot of macros/functions that have been built into this spreadsheet by other people, and the problem may be coming from one of them (although I don't see how they could affect the function). Since I don't think I would be able to post the spreadsheet, this may just have to remain an unsolved mystery unless there are any other potential problems anyone sees.
Option Explicit
Public Function WeirFlow(Length As Double, Hf As Double) As Double
End Function
Public Function QQf(H2 As Double, H1 As Double) As Double
End Function
Public Function SubWeir(Length As Double, flow As Double, H2 As Double) As Double
End Function
Public Function StrtWeir(Length As Double, flow As Double) As Double
End Function
Thanks
Bookmarks