+ Reply to Thread
Results 1 to 2 of 2

'ActiveWorkbook.Names.Add Name:' how to make range variable?

  1. #1
    TeeSea
    Guest

    'ActiveWorkbook.Names.Add Name:' how to make range variable?

    Data is coming into a worksheet, and from a macro, I determine the range
    using Selection.CurrentRegion.Select, I then .Add Name, but the macro is
    setting the range. I want the range to change each time the macro is run.

  2. #2
    Tom Ogilvy
    Guest

    Re: 'ActiveWorkbook.Names.Add Name:' how to make range variable?

    Hard to say what the problem is without seeing your code.

    Perhaps

    Range("A1").CurrentRegion.Name = "Data1"

    --
    Regards,
    Tom Ogilvy


    "TeeSea" <[email protected]> wrote in message
    news:[email protected]...
    > Data is coming into a worksheet, and from a macro, I determine the range
    > using Selection.CurrentRegion.Select, I then .Add Name, but the macro is
    > setting the range. I want the range to change each time the macro is run.




+ 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