Consulting

Results 1 to 3 of 3

Thread: Hidden Module?

  1. #1

    Hidden Module?

    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

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    It may just be passed from the spreadsheet as in =DRAWDOWN(A1)
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •