LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Why Range name not showing in list

I have been studying creating range names in VBA. I have two procedures that
work (shown below.) When the first example is run, the range name does not
display in the toolbars Name Box but the second one does. I don't understand
why and if I create the name using the first method, how can I get it to show
up in the Name box list?

1st Example
ActiveWorkbook.Names.Add Name:="ListTbl", _
RefersTo:="=Offset(Sheet2!$A:$A,0,0,COUNTA(Sheet!$ A:$A),4)"

2nd Example

€˜ Sheets("ListTbl").Activate
'
' With ActiveWorkbook.Worksheets("ListTbl ")
' Set rng = .Range("$A$2")
' Set DestCell = rng.End(xlDown)
'
' Do
' If DestCell = rng.Row Then
' 'stop looping, at the top of the range
' Exit Do
' End If
'
' If DestCell < "" Then
' Exit Do
' Else
' 'come up a row and continue testing
' Set DestCell = DestCell.Offset(-1, 0)
' End If
' Loop
'
' .Range(rng, DestCell).Name = "Sheet2"


' End With
Thank you very much
 
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
Drop down list showing different value dspitler Excel Discussion (Misc queries) 3 March 25th 08 01:32 PM
drop down list is not showing Tarin C Excel Discussion (Misc queries) 0 May 22nd 07 03:30 AM
No argument list showing in UDF [email protected] Excel Programming 2 January 25th 06 05:13 PM
Creating and showing a list comotoman Excel Discussion (Misc queries) 5 September 16th 05 05:02 PM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM


All times are GMT +1. The time now is 06:38 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"