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

Hello!

I think there is a general problem with excel. When I have several sheets
(over 20), and I want to rename a sheet, this takes about 30 seconds. I do
not know why and what is happening in the background, but it is a big
problem for my program. I use the "add" function to insert new sheets, and
the I use the "sheet.name" function to rename the inserted sheets. I have
more than 40 sheets in my workbook and as I said, the renaming-process takes
up to a minute.
When I insert a new sheet, my german excel version automatically names the
sheets like "Tabelle1", "Tabelle2", ...
Is there a function to set a certain name here, befor the insertion happens?
Or does anybody know, why the renaming function takes so much time?
Thanks for your help.

Regards
Christian Galbavy


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default naming sheets


Hello!

I think there is a general problem with excel. When I have several sheets
(over 20), and I want to rename a sheet, this takes about 30 seconds. I
do
not know why and what is happening in the background, but it is a big
problem for my program. I use the "add" function to insert new sheets,
and
the I use the "sheet.name" function to rename the inserted sheets. I have
more than 40 sheets in my workbook and as I said, the renaming-process
takes
up to a minute.
When I insert a new sheet, my german excel version automatically names
the
sheets like "Tabelle1", "Tabelle2", ...
Is there a function to set a certain name here, befor the insertion
happens?
Or does anybody know, why the renaming function takes so much time?
Thanks for your help.


If you have many sheets connected with each other , especially when u use
formulas such "lookup", "sum.if" etc. it might happend that after every
change of name of a sheet everything is recalculating.
Try to change option ( tools, options...) "recalculate automatically" into
"recalculate manually" then we'll see if any difference appear.
do not forget that if workbook is recalculated manually the results of any
formula is unchanged until u run "recalculate" (F9) option or before saving
of file.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default naming sheets

Hi Christian,

Here is one way

Private iSheet As Long

Private Sub Workbook_NewSheet(ByVal Sh As Object)
iSheet = Worksheets.Count
Sh.Name = "Tabelle" & iSheet
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob Phillips

"Christian Galbavy" wrote in message
...
Hello!

I think there is a general problem with excel. When I have several sheets
(over 20), and I want to rename a sheet, this takes about 30 seconds. I do
not know why and what is happening in the background, but it is a big
problem for my program. I use the "add" function to insert new sheets, and
the I use the "sheet.name" function to rename the inserted sheets. I have
more than 40 sheets in my workbook and as I said, the renaming-process

takes
up to a minute.
When I insert a new sheet, my german excel version automatically names the
sheets like "Tabelle1", "Tabelle2", ...
Is there a function to set a certain name here, befor the insertion

happens?
Or does anybody know, why the renaming function takes so much time?
Thanks for your help.

Regards
Christian Galbavy




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
Naming sheets from a cell value Tony4X4 Excel Discussion (Misc queries) 12 September 7th 09 01:55 PM
VBA Help naming sheets jlclyde Excel Discussion (Misc queries) 8 November 20th 07 09:59 PM
Naming Sheets for day of the month Socks322 Excel Discussion (Misc queries) 0 November 7th 06 03:08 PM
Naming Sheets Tabs Cgbilliar Excel Worksheet Functions 2 November 5th 04 05:21 PM
Inserting Sheets and Naming Dan Gesshel Excel Programming 5 April 15th 04 01:52 AM


All times are GMT +1. The time now is 09:10 PM.

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"