Naming a cell according to its contents

G

Guest

I would like to assign a name to a cell according to its contents. Is this
possible? And what is the syntax?
 
B

Bob Phillips

Syntax would be the same as naming it after anything else.

Range("A1").Name = Range("A1").Value

but you have to be careful you don't put any spurious characters in there.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top