Closed Thread
Results 1 to 3 of 3

VBA & Coding a dynamic range

  1. #1
    Mark Ivey
    Guest

    VBA & Coding a dynamic range

    I was wondering if anyone could help me out with some code issues.

    I have found several links showing how to define a name range with VBA, but I would like to do so with a dynamic name range as well. Can someone help me with some generic code on this issue?

    --
    Mark Ivey

    UoP e-mail: [email protected]
    Personal e-mail: [email protected]

  2. #2
    Bob Phillips
    Guest

    Re: VBA & Coding a dynamic range


    Set myRng = Range(Range("A1"),Cells(Rows.Count,"A").End(xlUp))
    myRng.Name = "some_name"

    which will get everytrhing in column A and name it "some_name"

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mark Ivey" <[email protected]> wrote in message news:[email protected]...
    I was wondering if anyone could help me out with some code issues.

    I have found several links showing how to define a name range with VBA, but I would like to do so with a dynamic name range as well. Can someone help me with some generic code on this issue?

    --
    Mark Ivey

    UoP e-mail: [email protected]
    Personal e-mail: [email protected]

  3. #3
    Mark Ivey
    Guest

    Re: VBA & Coding a dynamic range

    Thanks Bob. This works out great.

    --
    Mark Ivey

    UoP e-mail: [email protected]
    Personal e-mail: [email protected]
    "Bob Phillips" <[email protected]> wrote in message news:[email protected]...

    Set myRng = Range(Range("A1"),Cells(Rows.Count,"A").End(xlUp))
    myRng.Name = "some_name"

    which will get everytrhing in column A and name it "some_name"

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Mark Ivey" <[email protected]> wrote in message news:[email protected]...
    I was wondering if anyone could help me out with some code issues.

    I have found several links showing how to define a name range with VBA, but I would like to do so with a dynamic name range as well. Can someone help me with some generic code on this issue?

    --
    Mark Ivey

    UoP e-mail: [email protected]
    Personal e-mail: [email protected]

Closed 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