+ Reply to Thread
Results 1 to 4 of 4

macro to name a certain range

  1. #1
    Registered User
    Join Date
    10-17-2007
    Posts
    62

    macro to name a certain range

    Hi all,

    I need a macro to name a range at column B and C. I want to use the upmost cell of column B as a name of that range, and cells from B2 to last non-blanc cell of B and C would be the range itself. (B and C columns have always the last non-blanc cell at the same row)

    How about if after the area has been named, I insert rows or columns so that this named range moves to new position, is it possible to automatically update the range to still mean the right cells?

    Thank you all

    -Juhanen-

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    You didn't specify a sheet so the code below works on the activesheet:
    Please Login or Register  to view this content.
    Not all forums are the same - seek and you shall find

  3. #3
    Registered User
    Join Date
    10-17-2007
    Posts
    62

    Thumbs up Works

    Thank you Simon, now it works just like I wanted

    regards,

    Juhanen

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    student,

    Please read the Forum Rules about posting questions in other people's threads.

+ 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