PDA

View Full Version : Hidden Module?



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

mdmackillop
09-25-2009, 12:45 PM
It may just be passed from the spreadsheet as in =DRAWDOWN(A1)

Mistereous1
09-25-2009, 01:06 PM
Not anywhere I can see, there were no named ranges in the spreadsheet to refer to. And there would have to be a macro to reset the column each time the data was appended. The only thing that exists are user defined functions.