Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Re Post Named Ranges. Much easier question here... Thanks

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi
    I was able to answer my own question with a litter deeper digging into VBA help.

    However, one question remains.

    How do I loop through a worksheet and find all of the Named Ranges?

    Need this to work VIA VBA no the label combo box.

    Thanks!

    Tom

    [ This Message was edited by: TsTom on 2002-03-30 07:38 ]

    [ This Message was edited by: TsTom on 2002-03-30 08:00 ]

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Guderup, Denmark
    Posts
    288
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    This find all names on worksheet 1
    Change Sheets(1) to your worksheet

    Sub FindName()
    For Each n In ActiveWorkbook.Names
    If InStr(1, n.RefersTo, Sheets(1).Name) Then
    msgbox (n.Name)
    End If
    Next
    End Sub

    regards Tommy

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks TB!
    Exactly what I needed!
    Tom

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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