Excel - compare two documents? -


i'm trying link 2 excel books together. exact copy of each other, if edit either one, other should updated too. know can using link function, that's unidirectional. need know how can in both directions.

book1.xls    sheet1       a1: hello!       a2: goodbye!  book2.xls    sheet1       a1: hello!       a2: goodbye! 

now if have link between book2 , book1, edited in book1 changed in book2, not vice versa!

thank you!!

one question - if files meant exact copies why have 2 copies?

a possible example use workbook_sheetchange event changes workbook update other workbook. however, works when change values , not formats etc.

eg 2 workbooks book1.xlsm & book2.xlsm, in book1.xlsm in thisworkbook object enter

private sub workbook_sheetchange(byval sh object, byval target range) dim myobj object, strcopyto string   strcopyto = "c:\users\osknows\desktop\book2.xlsm"   set myobj = getobject(strcopyto)  myobj.parent.windows(myobj.name).visible = true  target.copy destination:=myobj.sheets(sh.name).range(target.address)  myobj.close savechanges:=true  end sub 

do same in book2.xlsm change strcopyto = "c:\users\osknows\desktop\book1.xlsm"

this 1 of many ways done


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -