Results 1 to 4 of 4

Evaluate each named range vba

Threaded View

jaryszek Evaluate each named range vba 06-25-2018, 06:19 AM
Kaper Re: Evaluate each named range... 06-26-2018, 01:41 PM
jaryszek Re: Evaluate each named range... 06-26-2018, 02:55 PM
dflak Re: Evaluate each named range... 06-26-2018, 02:58 PM
  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,946

    Evaluate each named range vba

    Hi,

    i am using code like this:

        For Each n In wbMain.Names
        
            If InStr(n.Name, "Vn_") > 0 Then
        
                If InStr(n.Name, "!") > 0 Then
                    result1 = InStr(n.Name, "!")
                    result2 = Len(n.Name) - result1
                    resultEnd = Right(n.Name, result2)
                Else
                    resultEnd = n.Name
                End If
        
                If Not dicMain.exists(resultEnd) Then
                
                TxtVariable = Join(Array(Range(n).Value, n), Chr(2))
            
        dicMain.Add resultEnd, TxtVariable
                
                Else
                    'do nothing
                End If
                
            End If
        
        Next n
        
    End With
    but problem is when i have:

    =Servers!$F$17+Servers!$F$10
    as range(n).value.

    How to compute this? Or get only result of this?

    and other value is :
    Screenshot_18.png

    Best,:
    Jacek
    Last edited by jaryszek; 06-25-2018 at 06:23 AM. Reason: forgot to add image

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Evaluate named range to an array
    By kcaisaacs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2017, 02:23 PM
  2. [SOLVED] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  3. [SOLVED] EVALUATE Function in Named Range (ERRORS and VOLATILITY?)
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2015, 06:47 PM
  4. [SOLVED] Evaluate Named Range Array formula to VBA Array
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-07-2014, 09:06 PM
  5. Replies: 7
    Last Post: 08-15-2013, 09:33 AM
  6. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM

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