Results 1 to 2 of 2

Naming a fluctuating range

Threaded View

  1. #1
    Registered User
    Join Date
    08-15-2008
    Location
    London
    Posts
    11

    Naming a fluctuating range

    Hi all,

    Hoping I could pick your brains again please?

    I've got a spreadsheet which is created from a report off of 3rd party software. Because of the nature of the report, there could be any varying amount of rows of data, from 5 to 100-odd.

    What I'm trying to do is name a range, however I do not know of a way of naming a range without using absolute references.

    What I have at the moment:
        Range("D2").Select
        Range(Selection, Selection.End(xlDown)).Select
        ActiveWorkbook.Names.Add Name:="days", RefersToR1C1:= _
            "='CLS-ServiceDesk(remedycls)'!R2C4:R9C4"
    That bloody "R2C4:R9C4" is what's screwing me over. Is there a way to name this selection without using absolute references?

    Many thanks, as always,

    Pan
    Last edited by VBA Noob; 02-12-2009 at 02:22 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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