#1   Report Post  
Chandra
 
Posts: n/a
Default Link Formulae

Friends

Is there any way in excel in which i could link the formula and not copy
them. Meaning I want to link the formulae in such a way that the formula of
the linked cell changes if there is a modification of the formula of the
parent cell.


I have elaborated by giving an example

Say I have a formula sum(A1:A5) in the cell A6 in worksheet1.
I copy the similar formula in worksheet2 at A6

Now I want the formula in worksheet2 to change if I have changed the formula
in worksheet1.

For example

If the formula in Worksheet1 A6 is changed to sum(A1:A4) , I want the
formula in Worksheet2 A6 to change automatically to sum(A1:A4)

Any Ideas how to do this in Excel.

--
Regards

Chandra
  #2   Report Post  
Ken Johnson
 
Posts: n/a
Default

Chandra,
the only way I know of is to use a Worksheet_Change Event procedure.
Using your example the following worked for me

Private Sub Worksheet_Change(ByVal Target As Range)
Sheets(2).Range("A6").Formula = ActiveSheet.Range("A6").Formula
End Sub

I put this Sub into the Sheet 1 module.

It only works one way. The formula on Sheet 2 changes when you change
the formula on sheet 1, but not the other way around.

Hope this helps
Ken Johnson

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
Change to formulae Emma Hope Excel Worksheet Functions 3 September 5th 05 09:16 PM
Paste Link - retaining formatting Suzanne Marie Excel Discussion (Misc queries) 1 August 18th 05 02:02 AM
Link from webpage to excel sheet Auto-Reply to mail in folder, using a te Excel Discussion (Misc queries) 0 July 21st 05 09:08 PM
assemble link from different cells and return value tastic96 Excel Worksheet Functions 2 June 27th 05 01:00 PM
Breaking the link T New Users to Excel 1 May 4th 05 10:37 PM


All times are GMT +1. The time now is 06:48 AM.

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"