Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This works for me:
Sub tablenamer() Dim x As String x = InputBox("Enter the table name") ActiveCell.CurrentRegion.Name = x End Sub In , lior03 typed: 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Naming the range of data | Excel Discussion (Misc queries) | |||
vlookup naming a range in excel 07 | Excel Worksheet Functions | |||
Naming a range | Excel Discussion (Misc queries) | |||
Range naming | Excel Discussion (Misc queries) | |||
Naming a range | Excel Discussion (Misc queries) |