+ Reply to Thread
Results 1 to 4 of 4

syntax to go to a named range

  1. #1
    Ben
    Guest

    syntax to go to a named range

    Hi all,

    I record a macro in Excel to go to a particular name name. It produced
    something like this:

    Application.Goto Reference:="MyNameRange"

    Do you know of a shorter syntax? It just seems to be a long line, since I
    have many name ranges. Thanks.

    Ben

    --


  2. #2
    Norman Jones
    Guest

    Re: syntax to go to a named range

    Hi Ben,

    If the named range is on the active sheet, try:

    Range("MyNameRange").select

    ---
    Regards,
    Norman



    "Ben" <Ben@discussions.microsoft.com> wrote in message
    news:6C3D742D-5BD5-4E80-9C11-DE34F931A48A@microsoft.com...
    > Hi all,
    >
    > I record a macro in Excel to go to a particular name name. It produced
    > something like this:
    >
    > Application.Goto Reference:="MyNameRange"
    >
    > Do you know of a shorter syntax? It just seems to be a long line, since I
    > have many name ranges. Thanks.
    >
    > Ben
    >
    > --
    >




  3. #3
    Martijn
    Guest

    Re: syntax to go to a named range

    Ben,

    I don't think there is a shorter one.

    In excel you can select the different named ranges by pressing F5 or by
    using the dropdown above cel A1.

    grtx's Martijn

    "Ben" <Ben@discussions.microsoft.com> schreef in bericht
    news:6C3D742D-5BD5-4E80-9C11-DE34F931A48A@microsoft.com...
    > Hi all,
    >
    > I record a macro in Excel to go to a particular name name. It produced
    > something like this:
    >
    > Application.Goto Reference:="MyNameRange"
    >
    > Do you know of a shorter syntax? It just seems to be a long line, since I
    > have many name ranges. Thanks.
    >
    > Ben
    >
    > --
    >




  4. #4
    Ben
    Guest

    RE: syntax to go to a named range

    Thanks guys. Works.

    Ben

    --



    "Ben" wrote:

    > Hi all,
    >
    > I record a macro in Excel to go to a particular name name. It produced
    > something like this:
    >
    > Application.Goto Reference:="MyNameRange"
    >
    > Do you know of a shorter syntax? It just seems to be a long line, since I
    > have many name ranges. Thanks.
    >
    > Ben
    >
    > --
    >


+ 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