+ Reply to Thread
Results 1 to 3 of 3

Defining worksheet specific range names

  1. #1
    Barb Reinhardt
    Guest

    Defining worksheet specific range names

    I have the following in a macro

    ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange

    This works to define workbook names. Is it possible to define a worksheet
    specific name? I have the sheet name defined as "sht" and am wondering what
    I need to change if it can be done.

    Thanks in advance,
    Barb Reinhardt



  2. #2
    galimi
    Guest

    RE: Defining worksheet specific range names

    Barb,

    I believe to specify a local sheet name, you simply have to preface the
    rangename string with the sheet name and an exclamation point.
    --
    http://HelpExcel.com
    1-888-INGENIO
    1-888-464-3646
    x0197758


    "Barb Reinhardt" wrote:

    > I have the following in a macro
    >
    > ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange
    >
    > This works to define workbook names. Is it possible to define a worksheet
    > specific name? I have the sheet name defined as "sht" and am wondering what
    > I need to change if it can be done.
    >
    > Thanks in advance,
    > Barb Reinhardt
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: Defining worksheet specific range names

    Like so

    worksheets("Sheet1").names.add name:="Jim",refersto:=range("A1:B1")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Barb Reinhardt" <[email protected]> wrote in message
    news:[email protected]...
    > I have the following in a macro
    >
    > ActiveWorkbook.Names.Add Name:=rangename, RefersToR1C1:=seriesrange
    >
    > This works to define workbook names. Is it possible to define a

    worksheet
    > specific name? I have the sheet name defined as "sht" and am wondering

    what
    > I need to change if it can be done.
    >
    > Thanks in advance,
    > Barb Reinhardt
    >
    >




+ 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