Update Links including highlights and comments

malou

New Member
Joined
Jun 12, 2009
Messages
43
Hi,

Is it possible to update the links including the highlights and comments in the cell? As a background, I have 2 identical workbooks.

Workbook 1 - has my actual data. It also has a vba macro event where if there are changes made, the cell will be highlighted and a comment will be added to show the previous value and who did the changes.

Workbook 2 - is linked to workbook1. It has an "update" button that once click will update the workbook. This works fine without the added event macro on workbook 1.

this is my code for "Update" button
Code:
Sub Button4_Click()ActiveSheet.Unprotect Password:="xxxxxx"
ThisWorkbook.UpdateLink Name:=ThisWorkbook.LinkSources
ActiveSheet.Protect Password:="xxxxxx", AllowFormattingCells:=True
End Sub

Can you help me fix my code to include highlights and comments made in workbook1?

thanks in advance.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,223,719
Messages
6,174,087
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top