Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Changing filename causes major slowdown, any help appreciated

I have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Changing filename causes major slowdown, any help appreciated

Hi Dom,

'--------------
have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae
are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.
'---------------

The CalculateFull method forces a recalculation of all
open workbooks.

Additionally, if the calculations are in a different workbook,
why do you need to recalculate the backup copy?


---
Regards,
Norman


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Changing filename causes major slowdown, any help appreciated

Are you closing the work,books after you are done with each one?

"Dom_Ciccone" wrote:

I have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Changing filename causes major slowdown, any help appreciated

Yes I am closing them. Perhaps I didn't explain clearly enough.

The application workbook contains querytables linking to a SQL Server
database.

The application opens a template workbook, feeds in the contractors code and
then the template file is recalculated (to force all the VLookups to adjust
to the contractors code. These VLookups get their data from a combination of
the contractors code and named ranges in the application workbook). This
file is then saved under a new filename and closed, before the whole process
begins again with the next contractor code.

The problem is that the contractor codes have changed from 3 digit to 5
digit, so I have to make various changes in the VBA. I therefore have 2
choices: Either make changes to the existing file and save it as a new file
(which runs but with the slowdown issue) or take a backup of the existing
version and make my changes in the original. (I haven't tried this method,
because the backup copy I take also suffers the same slowdown issue and if
anything goes wrong I do not wish to replace the original with a faulty
backup).

It's very frustrating that if I open the application that works, perform a
Save As with a new filename and then, without even closing the file, run
it...it still suffers from the slowdown, where a moment earlier it didn't.

"Joel" wrote:

Are you closing the work,books after you are done with each one?

"Dom_Ciccone" wrote:

I have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Changing filename causes major slowdown, any help appreciated

Look at VBA Project window and see what objects are still open.

When I open multiple files I use only one object that I use for every file.
Not open a new object for each file. the VBA Project window may help give
you a clue to the source of the problem.

"Dom_Ciccone" wrote:

Yes I am closing them. Perhaps I didn't explain clearly enough.

The application workbook contains querytables linking to a SQL Server
database.

The application opens a template workbook, feeds in the contractors code and
then the template file is recalculated (to force all the VLookups to adjust
to the contractors code. These VLookups get their data from a combination of
the contractors code and named ranges in the application workbook). This
file is then saved under a new filename and closed, before the whole process
begins again with the next contractor code.

The problem is that the contractor codes have changed from 3 digit to 5
digit, so I have to make various changes in the VBA. I therefore have 2
choices: Either make changes to the existing file and save it as a new file
(which runs but with the slowdown issue) or take a backup of the existing
version and make my changes in the original. (I haven't tried this method,
because the backup copy I take also suffers the same slowdown issue and if
anything goes wrong I do not wish to replace the original with a faulty
backup).

It's very frustrating that if I open the application that works, perform a
Save As with a new filename and then, without even closing the file, run
it...it still suffers from the slowdown, where a moment earlier it didn't.

"Joel" wrote:

Are you closing the work,books after you are done with each one?

"Dom_Ciccone" wrote:

I have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Changing filename causes major slowdown, any help appreciated

Thanks Joel, I'll try that.

It's very confusing that it works fine until I change the filename.

"Joel" wrote:

Look at VBA Project window and see what objects are still open.

When I open multiple files I use only one object that I use for every file.
Not open a new object for each file. the VBA Project window may help give
you a clue to the source of the problem.

"Dom_Ciccone" wrote:

Yes I am closing them. Perhaps I didn't explain clearly enough.

The application workbook contains querytables linking to a SQL Server
database.

The application opens a template workbook, feeds in the contractors code and
then the template file is recalculated (to force all the VLookups to adjust
to the contractors code. These VLookups get their data from a combination of
the contractors code and named ranges in the application workbook). This
file is then saved under a new filename and closed, before the whole process
begins again with the next contractor code.

The problem is that the contractor codes have changed from 3 digit to 5
digit, so I have to make various changes in the VBA. I therefore have 2
choices: Either make changes to the existing file and save it as a new file
(which runs but with the slowdown issue) or take a backup of the existing
version and make my changes in the original. (I haven't tried this method,
because the backup copy I take also suffers the same slowdown issue and if
anything goes wrong I do not wish to replace the original with a faulty
backup).

It's very frustrating that if I open the application that works, perform a
Save As with a new filename and then, without even closing the file, run
it...it still suffers from the slowdown, where a moment earlier it didn't.

"Joel" wrote:

Are you closing the work,books after you are done with each one?

"Dom_Ciccone" wrote:

I have built an application that produces separate workbooks of financial
data for each of our contracts on a monthly basis, approximately 300
workbooks per month. This application runs fine and very fast. However, I
need to make a couple of changes to it. When I save the file under a new
name (even just saving an unaltered copy) as a backup, the saved copy runs
very slowly.

I've stepped through the code and it appears to be slowing down on the
Application.CalculateFull command. However the calculations and formulae are
in a different workbook and should not be affected by me changing the
application filename.

Can anyone explain why this is happening and/or suggest a solution please?
This is a very urgent piece of work.

Thanks

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
changing the filename in a Link Ben Excel Discussion (Misc queries) 1 August 12th 09 04:20 PM
Changing Filename in VBA SuperLC Excel Programming 1 January 3rd 07 03:54 AM
Changing filename fullers Excel Programming 5 February 23rd 06 04:01 PM
Changing the scale major unit in a graph Ant Excel Discussion (Misc queries) 2 February 6th 06 01:42 PM
hyperlinks-changing the filename only! gr8guy Excel Programming 4 May 29th 04 08:29 AM


All times are GMT +1. The time now is 06:12 AM.

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

About Us

"It's about Microsoft Excel"