Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Change synthax of workbook-level names in one go

Dear Experts:

A workbook with several worksheets has numerous workbook-level names,
which all have the following synthax:

_##_###_##_## (e.g. _90_237_44_44)

I would like to run a macro that changes all the above workbook-level
names to the following synthax:

##-###-##-## (e.g. 90-237-44-44). That is the first underscore has to
be dropped, all the other underscores have to be replaced with
hyphens.

Help is much appreciated. Thank you very muc in advance.

Regards, Andreas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Change synthax of workbook-level names in one go

Before you do that, try creating a new name that follows that syntax -- maybe in
a test workbook.

andreashermle wrote:

Dear Experts:

A workbook with several worksheets has numerous workbook-level names,
which all have the following synthax:

_##_###_##_## (e.g. _90_237_44_44)

I would like to run a macro that changes all the above workbook-level
names to the following synthax:

##-###-##-## (e.g. 90-237-44-44). That is the first underscore has to
be dropped, all the other underscores have to be replaced with
hyphens.

Help is much appreciated. Thank you very muc in advance.

Regards, Andreas


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Change synthax of workbook-level names in one go

Names can't include dashes (or hyphens), and various other illegal
characters.

Depending on the usage of your names, you might be able to create copies of
the originals, following some new format, then do a search & replace of cell
formulas in each sheet to update the new names. Might not be too difficult
programmatically. However Names can be used in other places besides cell
formulas, but only you would know about that.

Before posting back, try doing what I suggested manually with one name,
obviously having saved a backup. If you've only got a handful stick with it.

Regards,
Peter T

"andreashermle" wrote in message
...
Dear Experts:

A workbook with several worksheets has numerous workbook-level names,
which all have the following synthax:

_##_###_##_## (e.g. _90_237_44_44)

I would like to run a macro that changes all the above workbook-level
names to the following synthax:

##-###-##-## (e.g. 90-237-44-44). That is the first underscore has to
be dropped, all the other underscores have to be replaced with
hyphens.

Help is much appreciated. Thank you very muc in advance.

Regards, Andreas



Reply
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
workbook level name vs worksheet level name clara Excel Programming 1 September 19th 07 02:32 PM
Calling worksheet-level names using insert Autotext in Word NickHK Excel Programming 2 April 3rd 07 02:38 AM
If - Then synthax Turquoise_dax[_21_] Excel Programming 3 June 22nd 06 06:51 PM
Duplicating worksheet-level names jmg092548 Excel Discussion (Misc queries) 5 August 14th 05 11:11 PM
Why, when I create workbook-level name does it jump it to Sheet-level ? Charles Jordan Excel Programming 1 November 5th 03 08:43 PM


All times are GMT +1. The time now is 10:48 AM.

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

About Us

"It's about Microsoft Excel"