Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / January 2004

Tip: Looking for answers? Try searching our database.

Printing Names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FM - 08 Jan 2004 12:04 GMT
Hi there,

Is there a way of printing a list of "names" in a workbook
without using code?

Thanks,

FM
Paul Cundle - 08 Jan 2004 17:42 GMT
Strictly speaking, no. But you could write some code which will enable to
enter a function in a cell and have that do what you want. Create a macro
module in personal.xls and copy the following into it:

Public Function ShowName(number)
ShowName = Names(number).Name
End Function

Public Function ShowNameRef(number)
ShowNameRef = Names(number).RefersTo
End Function

Now enter into cell A1:
   =ShowName(1)
and you will see the first name in use in that workbook.

Now enter into cell B1:
   =ShowNameRef(1)
and you will see the reference pointed to by the first name in use in that
workbook.

If you copy the formulas down for as many names as you have and change the
number in brackets, you will end up with a sheet containing all the names.
Alternatively, use:

=ShowName(Row(A1))    ; and
=ShowNameRef(Row(A1))

and you can just copy this formula down as far as necessary.

Bear in mind that, since you're using custom functions, this will only work
on your machine.

Paul C,
Signature


> Hi there,
>
[quoted text clipped - 4 lines]
>
> FM

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.