+ Reply to Thread
Results 1 to 3 of 3

Help: #VALUE! error using function macro to reference other network closed spreadsheets

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    2010
    Posts
    2

    Help: #VALUE! error using function macro to reference other network closed spreadsheets

    Hi -
    I found the SumIFcolor macro shown below and successfully implemented it on a new sheet referencing existing sheets in my office's network drive. It works fine as long as I don't close the existing sheet(s), at which point I get the #VALUE! error. If I just use SUM for the same range, I don't have this problem. Is it a macro issue? Can I modify the macro to cure it? Fyi, I'm a novice user.

    SumIFcolor Macro:

    Function SumIFcolor(InCells As Range, ColorIndex As Integer) As Double
    SumIFcolor = 0
    For Each c In InCells
    If c.Interior.ColorIndex = ColorIndex Then
    SumIFcolor = SumIFcolor + c.Value
    End If
    Next c
    End Function

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Help: #VALUE! error using function macro to reference other network closed spreadshee

    That code can't work with closed workbooks and I don't believe there is a workaround.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    06-19-2014
    Location
    Santa Fe, New Mexico
    MS-Off Ver
    2010
    Posts
    2

    Re: Help: #VALUE! error using function macro to reference other network closed spreadshee

    Well allright then... You just saved me a lot of screen-staring time! Thanks, romperstomper.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Use INDIRECT function to reference a value in closed file
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  2. [SOLVED] Use INDIRECT function to reference a value in closed file
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 04:05 AM
  3. [SOLVED] Use INDIRECT function to reference a value in closed file
    By Saravan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  4. Use INDIRECT function to reference a value in closed file
    By Saravan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2005, 12:05 PM
  5. [SOLVED] Indirect( ) function loosing values when spreadsheets are closed
    By Word4Dummies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2005, 09:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1