Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default CHANGING FORMULAS WITH VBA !


In SheetB, a table with range (B5:P150) contains linked formulas,
example cell B5 contains the formala =Sheet7!C6 , cell B6 contains the
formala =Sheet7!C58 e.t.c

I want to create a second table of the same range (B155:P300) in SheetB
below the first one with each cell in the new table containing the exact
same formula as its corresponding cell in the first table with this
restriction: The cell refence portion of the formula of each cell in the
second table will be plus 1 row.

Example: range("B5").formula=Sheet7!C6 so,
range("B155).formula=Sheet7!C7 (i.e + 1 row)

range("B6").formula=Sheet7!C58 so,
range("B155).formula=Sheet7!C59 (i.e + 1 row)

Basically the macro will copy the SAME formulas to a new location
modifying only the row portion of the copied formula to one row more. I
would appreciate your help. Please I need a macro. Thanks.
Jay Dean

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default CHANGING FORMULAS WITH VBA !

Don -
This does not work. The cells in the original range have formulas that
contain varying ranges. I just need to paste the same formulas with just
the range portion of the origainal formula increased by one row.

Your formula fills some cells and clears others that are supposed to
contain formulas. This should not occur because the new table is of the
same size. Remember the reference *in* the original formulas are not
sequential. They vary.I just need the same formulas copied to the new
range with the range part of the old formula increased by one row.
Something like: newcell.formula="='Same_SheetName_as_oldformula!' &
original_row_in_old_formula + 1 row.

Any help would be appreciated.

Thanks.
Jay Dean


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
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 formulas ISAF Media Analysis[_2_] Excel Discussion (Misc queries) 3 February 16th 09 02:50 PM
Changing Formulas B.G. - Canada[_2_] New Users to Excel 2 January 27th 09 09:32 PM
changing formulas lb Excel Worksheet Functions 1 April 23rd 08 06:59 PM
changing formulas xcel user[_2_] Excel Discussion (Misc queries) 3 December 19th 07 05:13 PM
Formulas Changing Richard Excel Discussion (Misc queries) 0 April 13th 07 03:32 PM


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

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

About Us

"It's about Microsoft Excel"