View Single Post
  #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