Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

dynamic range of formulas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dreamz - 31 Jan 2006 17:04 GMT
is it possible to have a dynamic range that is filled with formulas an
expands/contracts depending on another range?

here's what i mean:

ranges x (data) and y (formulas) will be the same size. range x get
pasted in first, so it determines the size of the ranges. i want rang
y to automatically assume the correct size and fill each cell with th
correct formula.

right now, i clear the ranges, paste in range x, then put in th
formulas. of course, this takes time and slows down the calculation.

obviously, i can simplify everything by putting the formulas into th
worksheet and never dealing with it in code, but i don't do this fo
two reasons: 1) it's a waste of memory, and 2) the ranges have to b
the same size.

ideally, i'd like the formulas to already be in the worksheet, and whe
the range expands/contracts, only those cells that are within the rang
have the formula. is this possible?

thanks
Tom Ogilvy - 31 Jan 2006 17:55 GMT
for a literal intepretation of what you ask, there is no support for this.
x = "B9:B200"
Range(x).Offset(0,1).Formula="=If(" & Range(x)(1).Address(0,0) &
"=6,True,False)"

(as an example) is a possibility

Signature

Regards,
Tom Ogilvy

> is it possible to have a dynamic range that is filled with formulas and
> expands/contracts depending on another range?
[quoted text clipped - 19 lines]
>
> thanks.
dreamz - 31 Jan 2006 19:53 GMT
thanks for the reply, tom. i guess i'll still have to clear the cells
but your tip has been helpful. i never knew that you can do that wit
ranges. i learn something new every day!

cheers
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.