+ Reply to Thread
Results 1 to 5 of 5

VBA Refer to named range in different workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    playa del carmen, mexico
    MS-Off Ver
    ms office 2007
    Posts
    52

    Re: VBA Refer to named range in different workbook

    seems to be equally effective on same workbook, but i think my issue is with the syntax i am using to call the named range from a different workbook

    Range("DifferentWorkbook!NamedRange")
    Is this the correct way to call that range, or is it some form of workbooks("Differentworkbook").range("NamedRange") etc..

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA Refer to named range in different workbook

    MsgBox (Application.CountIf(Workbooks("OtherBook.xls").Names("otherNamedRange").RefersToRange, "find Me") = 0)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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