Mistereous1
09-25-2009, 12:32 PM
I'm working on an inherited spreadsheet for a friend which is mostly user defined functions. Here's my issue
Below is a section of the code. The first thing I noticed was the returns variable which isn't defined anywhere. I checked the other functions and nowhere is this variable defined. Could there be a Hidden Module where there are some global variables? If so, how do I unhide it?
Function drawDown(returns)
Dim i As Integer
Dim gDollar() As Double
Dim maxDollar, maxdDown, dDown As Double
ReDim gDollar(0 To returns.Count) As Double
gDollar(0) = 1
maxDollar = 1
dDown = 0
maxdDown = 0
Below is a section of the code. The first thing I noticed was the returns variable which isn't defined anywhere. I checked the other functions and nowhere is this variable defined. Could there be a Hidden Module where there are some global variables? If so, how do I unhide it?
Function drawDown(returns)
Dim i As Integer
Dim gDollar() As Double
Dim maxDollar, maxdDown, dDown As Double
ReDim gDollar(0 To returns.Count) As Double
gDollar(0) = 1
maxDollar = 1
dDown = 0
maxdDown = 0