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 / Programming / December 2006

Tip: Looking for answers? Try searching our database.

apply all names

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gelu.tudose@gmail.com - 05 Dec 2006 12:49 GMT
Hi there,

Objective:   -  raplace cell references with names

Question:   - Is it possible to apply all the defined names without
having to select them one by one in the Apply Names dialog box?

Thank you
NickH - 05 Dec 2006 13:57 GMT
Here's something to get you started...

Sub NamesLoop()
Dim N As Name
Dim strIN As String
Dim strOUT As String

   For Each N In ActiveWorkbook.Names
       strIN = N.RefersTo

'----------------------------------------------------------
'   strIN will be in a form something like -> "=Sheet1!R1C1"

'   Here you need to parse strIN, make your change and put _
   the result into strOUT
'----------------------------------------------------------
   
       N.RefersToR1C1 = strOUT
   Next N
End Sub

HTH    NickH
 
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.