|
|
Subject:
VBA: Address of a Cell in Excel
Category: Computers > Programming Asked by: yollgate6-ga List Price: $9.50 |
Posted:
26 Jun 2003 09:21 PDT
Expires: 01 Jul 2003 12:03 PDT Question ID: 222017 |
Is there anyway to determine the address of a given cell in Excel without using the ActiveCell.Address function. I need to do this because I am trying to determine the address of a cell withing a user defined function that is applied over a whole column. This way does not allow me to use the activecell.Adress function. How do I determine the cell address of the cell that contains the function? | |
| |
|
|
There is no answer at this time. |
|
Subject:
Re: VBA: Address of a Cell in Excel
From: mathtalk-ga on 27 Jun 2003 09:00 PDT |
Hi, yollgate6-ga: I think I've done this sort of thing with no running time problems. Suggestions: Change the arguments to your function so it simply takes the cell range (over which the average is required) as a parameter. You can then do a FOR EACH cell in the cell range loop. Some of the timing problem may be due to the instantiation of a Cell object each time through your loop, and my approach might speed things up because of that. Be aware of how Excel likes to calculate things. If I were a betting man, I'd say you've probably arranged the order of dependencies among cells in a way that runs counter to the order in which Excel want to evaluate them (from upper left to lower right). Creating "circular" references can cause Excel to slow way down as it must repeatedly evaluate all the cells in order to obtain "convergence". regards, mathtalk-ga |
Subject:
Re: VBA: Address of a Cell in Excel
From: yollgate6-ga on 27 Jun 2003 12:48 PDT |
Mthtalk, I orignially used your method, but it does not allow a dynamic range. I have a cell above the colume that specifies the length of time I am averaeing. As in if i want the average of 10 cells, i put a 10 in the "length cell". This way, i can change the range for 1500 rows in one or two key strokes. Although I will look into your second paragraph and see if it speeds up any. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |