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

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Renaming sheets - Performance problem

Hi

Try to turn off ScreenUpdating during the process.

Regards,
Per

"JoHar" skrev i meddelelsen
...
I'm looking for help regarding a performance problem I have with a VB
macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds
per
sheet (±10 seconds for 50 sheets). On the second pass the sheets are
renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds
for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52,
on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5,
etc.).


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Renaming sheets - Performance problem

And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.

JoHar wrote:

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Renaming sheets - Performance problem

Calculation and screen updating are both off....

"Dave Peterson" wrote:

And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.

JoHar wrote:

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Renaming sheets - Performance problem

And it works fine?????

If no, then I don't have another suggestion.

JoHar wrote:

Calculation and screen updating are both off....

"Dave Peterson" wrote:

And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.

JoHar wrote:

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Renaming sheets - Performance problem

What I mean is that during the renaming operation I described the calculation
and screen updating is off. reading your answer this means there is no
solution.. :-(

"Dave Peterson" wrote:

And it works fine?????

If no, then I don't have another suggestion.

JoHar wrote:

Calculation and screen updating are both off....

"Dave Peterson" wrote:

And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.

JoHar wrote:

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (ÀšÃ‚±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (ÀšÃ‚±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).

--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Renaming sheets - Performance problem

I only mean that I don't have another suggestion.

I don't know if there's a solution or not.

JoHar wrote:

What I mean is that during the renaming operation I described the calculation
and screen updating is off. reading your answer this means there is no
solution.. :-(

"Dave Peterson" wrote:

And it works fine?????

If no, then I don't have another suggestion.

JoHar wrote:

Calculation and screen updating are both off....

"Dave Peterson" wrote:

And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.

JoHar wrote:

I'm looking for help regarding a performance problem I have with a VB macro
that renames sheets in an excel workbook.

I have a macro that renames sheets in a workbook. The workbook contains
approx. 52 sheets that need to be renamed/reordered. On a first pass the
sheets are renamed to a new temporary name which takes about 0.2 seconds per
sheet (ÀšÃ‚±10 seconds for 50 sheets). On the second pass the sheets are renamed
to the final new name which takes about 7 seconds per sheet (ÀšÃ‚±350 seconds for
50 sheets). After this renaming action sheets are reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of the sheets are
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheets may get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
SEO SEO is offline
external usenet poster
 
Posts: 6
Default Renaming sheets - Performance problem

On Oct 3, 3:05*am, "Per Jessen" wrote:
Hi

Try to turn off ScreenUpdating during the process.

Regards,
Per

"JoHar" skrev i ...

I'm looking for help regarding a performance problem I have with a VB
macro
that renamessheetsin an excel workbook.


I have a macro that renamessheetsin a workbook. The workbook contains
approx. 52sheetsthat need to be renamed/reordered. On a first pass the
sheetsare renamed to a new temporary name which takes about 0.2 seconds
per
sheet (±10 seconds for 50sheets). On the second pass thesheetsare
renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds
for
50sheets). After this renaming actionsheetsare reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of thesheetsare
numbers from 1 to 52. On the first pass they are renamed into R1 to R52,
on
the second pass back again into 1 to 52 (sheetsmay get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5,
etc.).


At HIGH-THREAD-COUNT-BED-SHEETS.COM, we have chosen to work with only
the top luxury bed linen manufacturers in the world. We utilize our
industry experience and contacts to bring you the finest high thread
count bed sheets we can find.
http://www.high-thread-count-bed-she...uselinens.html
  #9   Report Post  
Posted to microsoft.public.excel.programming
SEO SEO is offline
external usenet poster
 
Posts: 6
Default Renaming sheets - Performance problem

On Oct 3, 2:36*am, JoHar wrote:
I'm looking for help regarding a performance problem I have with a VB macro
that renamessheetsin an excel workbook.

I have a macro that renamessheetsin a workbook. The workbook contains
approx. 52sheetsthat need to be renamed/reordered. On a first pass thesheetsare renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50sheets). On the second pass thesheetsare renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50sheets). After this renaming actionsheetsare reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of thesheetsare
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheetsmay get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).



At HIGH-THREAD-COUNT-BED-SHEETS.COM, we have chosen to work with only
the top luxury bed linen manufacturers in the world. We utilize our
industry experience and contacts to bring you the finest high thread
count bed sheets we can find.http://www.high-thread-count-bed-
sheets.com/organicbedding.html
  #10   Report Post  
Posted to microsoft.public.excel.programming
SEO SEO is offline
external usenet poster
 
Posts: 6
Default Renaming sheets - Performance problem

On Oct 3, 3:05*am, "Per Jessen" wrote:
Hi

Try to turn off ScreenUpdating during the process.

Regards,
Per

"JoHar" skrev i ...

I'm looking for help regarding a performance problem I have with a VB
macro
that renamessheetsin an excel workbook.


I have a macro that renamessheetsin a workbook. The workbook contains
approx. 52sheetsthat need to be renamed/reordered. On a first pass the
sheetsare renamed to a new temporary name which takes about 0.2 seconds
per
sheet (±10 seconds for 50sheets). On the second pass thesheetsare
renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds
for
50sheets). After this renaming actionsheetsare reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of thesheetsare
numbers from 1 to 52. On the first pass they are renamed into R1 to R52,
on
the second pass back again into 1 to 52 (sheetsmay get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5,
etc.).


At HIGH-THREAD-COUNT-BED-SHEETS.COM, we have chosen to work with only
the top luxury bed linen manufacturers in the world. We utilize our
industry experience and contacts to bring you the finest high thread
count bed sheets we can find.http://www.high-thread-count-bed-
sheets.com/luba.html


  #11   Report Post  
Posted to microsoft.public.excel.programming
SEO SEO is offline
external usenet poster
 
Posts: 6
Default Renaming sheets - Performance problem

On Oct 4, 5:01*am, JoHar wrote:
Calculation and screen updating are both off....

"Dave Peterson" wrote:
And try turning calculation to manual
then do the work
then turning calculation back to what it was when you started.


JoHar wrote:


I'm looking for help regarding a performance problem I have with a VB macro
that renamessheetsin an excel workbook.


I have a macro that renamessheetsin a workbook. The workbook contains
approx. 52sheetsthat need to be renamed/reordered. On a first pass the
sheetsare renamed to a new temporary name which takes about 0.2 seconds per
sheet (±10 seconds for 50sheets). On the second pass thesheetsare renamed
to the final new name which takes about 7 seconds per sheet (±350 seconds for
50sheets). After this renaming actionsheetsare reordered i.e. placed in
ascending order which takes about 0.1 second per sheet.
Each sheet contains data, graphs, named areas and have refrences to each
other.
During the renaming the Calculation is off. The names of thesheetsare
numbers from 1 to 52. On the first pass they are renamed into R1 to R52, on
the second pass back again into 1 to 52 (sheetsmay get a new number
depending on sort criteria i.e. what was sheet 1 may become sheet 5, etc.).


--


Dave Peterson


At HIGH-THREAD-COUNT-BED-SHEETS.COM, we have chosen to work with only
the top luxury bed linen manufacturers in the world. We utilize our
industry experience and contacts to bring you the finest high thread
count bed sheets we can find. http://www.high-thread-count-bed-she...omforters.html
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 sheets Nigel Excel Programming 10 March 4th 08 02:15 PM
renaming sheets Kjeldc[_2_] Excel Programming 4 January 11th 08 06:50 PM
Renaming sheets Adri[_2_] Excel Programming 5 April 5th 04 10:09 PM
renaming sheets Jeremy Excel Programming 2 November 28th 03 04:46 PM


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