LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default naming a range in excel

sub tablenamer
dim x as string
x = InputBox("Table name is ")
if not x ="" then
Activecell.CurrentRegion.Name = x
End if
ActiveCell.CurrentRegion.Select
end sub

To see the name, look in the name box or do Insert=Name=Define

--
Regards,
Tom Ogilvy


"lior03" wrote in message
...
sub tablenamer
dim x as string
x= inputbox("tablename is
activecell.currentregion.select
selection.currentregion.name
end sub
my question- how can i see the name i have chosen for the range in
"tablename is" - why does the excel name box show x rather
then the name i gave the range?
moshe



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Naming the range of data Chrissy Pitifer Excel Discussion (Misc queries) 1 July 10th 08 09:38 PM
vlookup naming a range in excel 07 Steven Excel Worksheet Functions 1 June 27th 08 04:07 PM
Naming a range hello Excel Discussion (Misc queries) 3 May 7th 07 07:01 PM
Range naming Squeaky Excel Discussion (Misc queries) 2 December 29th 06 09:10 PM
Naming a range bob777 Excel Discussion (Misc queries) 1 February 1st 06 01:05 PM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"