PC Review


Reply
Thread Tools Rate Thread

Autoname a range

 
 
CLB
Guest
Posts: n/a
 
      23rd Sep 2008
Thanks in advance.

Is it possible to automate the naming of a range, say of a table, as say the
intersection of the row and column headers?

 
Reply With Quote
 
 
 
 
paul.robinson@it-tallaght.ie
Guest
Posts: n/a
 
      23rd Sep 2008
Hi
Try this

ActiveWorkbook.Names.Add Name:=Selection.Cells(1, 1).Text,
RefersTo:=Selection.Address

The row and column headers are assumed to be in the first row and
column (the Cells(1,1) bit). You can replace Selection with a range
object if you require.

regards
Paul

On Sep 23, 7:25*am, CLB <C...@discussions.microsoft.com> wrote:
> Thanks in advance.
>
> Is it possible to automate the naming of a range, say of a table, as say the
> intersection of the row and column headers?


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      23rd Sep 2008
Assume the variable rng points at the table

rng.Name = rng.Cells(1,1,).value

--
__________________________________
HTH

Bob

"CLB" <(E-Mail Removed)> wrote in message
news:E53E861C-5923-4BD3-931F-(E-Mail Removed)...
> Thanks in advance.
>
> Is it possible to automate the naming of a range, say of a table, as say
> the
> intersection of the row and column headers?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoName Sheets by current date Cromag_762003 Microsoft Excel Worksheet Functions 4 2nd Jun 2006 07:14 PM
Outlook - Autoname Suggestions =?Utf-8?B?U01MYXRvY2hh?= Microsoft Outlook Discussion 1 24th Apr 2006 08:50 PM
Autoname list in Outlook 2003 =?Utf-8?B?VmlrYXMgTWFsaG90cmE=?= Microsoft Outlook Program Addins 1 30th Mar 2006 03:25 PM
Outlook autoname lookup in contacts =?Utf-8?B?RnJhbmtTcG9rYW5l?= Microsoft Outlook Installation 1 20th Jun 2005 02:02 AM
AutoName or Auto entry in emails =?Utf-8?B?TmFuY3kgSm8=?= Microsoft Outlook Discussion 2 23rd May 2005 01:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 PM.