Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Renaming sheets

I use the macro "Testfile(6)" form http://www.rondebruin.nl/copy3.htm.
It copies the first sheets coorrect. The macro also should rename the sheet
the same as the workbook name.
Some names are correctly renamed, others not.
What causes this and how can I fix it?

--
Kind regards
Adri


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Renaming sheets

Hi Adri

Can you give example

If the name already exist the on error will avoid a error
and the sheet will not be named for example

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Adri" wrote in message ...
I use the macro "Testfile(6)" form http://www.rondebruin.nl/copy3.htm.
It copies the first sheets coorrect. The macro also should rename the sheet
the same as the workbook name.
Some names are correctly renamed, others not.
What causes this and how can I fix it?

--
Kind regards
Adri




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Renaming sheets

Hello Ron,
The sheets taht are not renamed correctly get names like rapp(15), rapp(16).
The files in the directory have all different names. I copy in a workbook
with only one sheet. In my opinion the name can't already exist.
Adri

Ron de Bruin wrote:
| Hi Adri
|
| Can you give example
|
| If the name already exist the on error will avoid a error
| and the sheet will not be named for example
|
|
| "Adri" wrote in message
| ...
|| I use the macro "Testfile(6)" form
|| http://www.rondebruin.nl/copy3.htm.
|| It copies the first sheets coorrect. The macro also should rename
|| the sheet the same as the workbook name.
|| Some names are correctly renamed, others not.
|| What causes this and how can I fix it?
||
|| --
|| Kind regards
|| Adri


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Renaming sheets

Can you send me a test workbook Adri

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Adri" wrote in message ...
Hello Ron,
The sheets taht are not renamed correctly get names like rapp(15), rapp(16).
The files in the directory have all different names. I copy in a workbook
with only one sheet. In my opinion the name can't already exist.
Adri

Ron de Bruin wrote:
| Hi Adri
|
| Can you give example
|
| If the name already exist the on error will avoid a error
| and the sheet will not be named for example
|
|
| "Adri" wrote in message
| ...
|| I use the macro "Testfile(6)" form
|| http://www.rondebruin.nl/copy3.htm.
|| It copies the first sheets coorrect. The macro also should rename
|| the sheet the same as the workbook name.
|| Some names are correctly renamed, others not.
|| What causes this and how can I fix it?
||
|| --
|| Kind regards
|| Adri




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Renaming sheets

Ron de Bruin wrote:
| Can you send me a test workbook Adri
|
I find the solution. The length of the files that did not rename well, were
bigger then 31 signs.
I renamed them and everything went ok.
Thanks,
Adri




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Renaming sheets

Thanks for posting back

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Adri" wrote in message ...
Ron de Bruin wrote:
| Can you send me a test workbook Adri
|
I find the solution. The length of the files that did not rename well, were
bigger then 31 signs.
I renamed them and everything went ok.
Thanks,
Adri




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
Renaming Sheets Accor Excel Discussion (Misc queries) 6 August 15th 08 04:43 PM
Renaming multiple sheets Mark T Excel Worksheet Functions 14 July 16th 05 02:22 AM
copying and renaming sheets Jan Eikeland Excel Programming 9 December 23rd 03 07:55 PM
Renaming Sheets in a workbook Cameron MacRae Excel Programming 2 December 18th 03 11:19 PM
renaming sheets Jeremy Excel Programming 2 November 28th 03 04:46 PM


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