Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default EXCEL VBA non-volatile INDIRECT

I have a spreadsheet that I have been working on that involves usin
INDIRECT to get the address of the last cell in order to calculat
database formulas. It was originally hardcoded and took about 1 1/
minutes to run. But I kept having to change the formulas. When
changed to indirect so that I wouldn't have to keep changing formulas
it now takes about 5 1/2 minutes to run. I know that everyone says no
to use INDIRECT much, but I don't know another way. Has anyone writte
a non-volatile INDIRECT? Or does anyone have another suggestion?
I would appreciate any help!

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default EXCEL VBA non-volatile INDIRECT

If you are using INDIRECT or OFFSET to dynamically calculate the address of
the last cell then it has to be volatile for it it to function correctly.

(I always use OFFSET but its mostly a question of taste).

You can save some calculating time by using a helper cell to count the
number of rows once, and then referring to that cell in your dynamic range,
rather than counting the number of rows in every dynamic range.

You may also want to look at my website pages on speeding up calculations.

regards
Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

"aareding " wrote in message
...
I have a spreadsheet that I have been working on that involves using
INDIRECT to get the address of the last cell in order to calculate
database formulas. It was originally hardcoded and took about 1 1/2
minutes to run. But I kept having to change the formulas. When I
changed to indirect so that I wouldn't have to keep changing formulas,
it now takes about 5 1/2 minutes to run. I know that everyone says not
to use INDIRECT much, but I don't know another way. Has anyone written
a non-volatile INDIRECT? Or does anyone have another suggestion?
I would appreciate any help!!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default EXCEL VBA non-volatile INDIRECT

For my purposes, INDIRECT doesn't need to be volatile. I enter all o
my data at the start of the day and it needs to calculate once and the
be used in all of my database formulas

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default EXCEL VBA non-volatile INDIRECT

So after you have entered all your data enter the last row number in a cell
and refer to that.

Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

"aareding " wrote in message
...
For my purposes, INDIRECT doesn't need to be volatile. I enter all of
my data at the start of the day and it needs to calculate once and then
be used in all of my database formulas.


---
Message posted from http://www.ExcelForum.com/



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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
Avoid volatile Indirect problem teepee[_2_] Excel Discussion (Misc queries) 2 May 10th 07 04:57 PM
why is the INDIRECT function volatile? Dave F Excel Worksheet Functions 2 October 25th 06 02:10 PM
is there a NON-volatile version of INDIRECT ?? spiderman Excel Discussion (Misc queries) 1 February 4th 05 04:54 PM
Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN rsbitian Excel Programming 0 October 22nd 03 06:11 AM


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