Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default How to optimize my coding..

I create an XLS with about a dozen or so named ranges that are dynamic based
on formula built into each one. For example, I have a name range that is
based on a column having value of "X". I noticed that it takes about 10 secs
for the file to open. I wrote a macro to open the above XLS and import data
from another XLS and save as another file. Because it takes about 10 secs to
open the file, the process takes longer than I expect because I have about
~150 different data files I have to process. Turning the calculation to
"Manual" seems to help open the file faster but if the file is open by
someone else, will it be calculated automatically? If so, I think I am safe.
Second question, when is Excel define the name range? when I use it or does
it determine for all name ranges upon opening the file?

Thanks a bunch
M
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How to optimize my coding..

When Excel starts, if a document with automatic calculation is the first
opened, that will be the calculation mode for all subsequent documents if
and until the calculation mode is changed, either manually or in code. If
however, Excel starts with a document with manual calculation mode set, such
as double-clicking that file when Excel is not running, then Manual mode is
the order.

Names will come into effect as soon as the document opens, as the formulae
will be calculated.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"matelot" wrote in message
...
I create an XLS with about a dozen or so named ranges that are dynamic

based
on formula built into each one. For example, I have a name range that is
based on a column having value of "X". I noticed that it takes about 10

secs
for the file to open. I wrote a macro to open the above XLS and import

data
from another XLS and save as another file. Because it takes about 10 secs

to
open the file, the process takes longer than I expect because I have about
~150 different data files I have to process. Turning the calculation to
"Manual" seems to help open the file faster but if the file is open by
someone else, will it be calculated automatically? If so, I think I am

safe.
Second question, when is Excel define the name range? when I use it or

does
it determine for all name ranges upon opening the file?

Thanks a bunch
M



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default How to optimize my coding..

Thanks for the explanation.

"Bob Phillips" wrote:

When Excel starts, if a document with automatic calculation is the first
opened, that will be the calculation mode for all subsequent documents if
and until the calculation mode is changed, either manually or in code. If
however, Excel starts with a document with manual calculation mode set, such
as double-clicking that file when Excel is not running, then Manual mode is
the order.

Names will come into effect as soon as the document opens, as the formulae
will be calculated.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"matelot" wrote in message
...
I create an XLS with about a dozen or so named ranges that are dynamic

based
on formula built into each one. For example, I have a name range that is
based on a column having value of "X". I noticed that it takes about 10

secs
for the file to open. I wrote a macro to open the above XLS and import

data
from another XLS and save as another file. Because it takes about 10 secs

to
open the file, the process takes longer than I expect because I have about
~150 different data files I have to process. Turning the calculation to
"Manual" seems to help open the file faster but if the file is open by
someone else, will it be calculated automatically? If so, I think I am

safe.
Second question, when is Excel define the name range? when I use it or

does
it determine for all name ranges upon opening the file?

Thanks a bunch
M




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
optimize coding on named range Dantz Excel Programming 7 October 6th 05 04:29 AM
Implant macro coding into ASP coding Sam yong Excel Programming 5 September 15th 05 10:37 AM
Optimize SumProduct chris Excel Worksheet Functions 3 December 9th 04 08:39 AM
Optimize RAM Utilization Ken Wright Excel Programming 0 June 2nd 04 09:52 PM
How can I optimize this code? wullux Excel Programming 2 December 17th 03 07:13 PM


All times are GMT +1. The time now is 05:39 PM.

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"