+ Reply to Thread
Results 1 to 3 of 3

How to name active cell which ever cell is activecell

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    How to name active cell which ever cell is activecell

    I need to name a cell that is the active cell. The active cell can be any cell that is selected at the time I need to name it. I can get it to name the cell using the cell address, but I don't know how to change it to the active cell.

    Below is the code that I tried, but the syntax that I tried to say what cell is to be named simply isn't correct.

    ActiveWorkbook.Names.Add Name:="BelowDeletedCell", range("activecell")
    Need a little help please.
    Last edited by Launchnet; 01-09-2010 at 12:20 AM.
    Thanks for helping . . .
    Matt @ Launchnet

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: How to name active cell which ever cell is activecell

    Hi Matt, perhaps just:
    ActiveWorkbook.Names.Add Name:="Paul2", RefersTo:=ActiveCell

  3. #3
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: How to name active cell which ever cell is activecell

    Thanks Paul . . . Did the trick !

+ 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