Maintaining Cell Values Across Sheets

kknapper

New Member
Joined
Oct 16, 2009
Messages
4
I have a column titled Server Name in 3 different sheets. When I change the server name in one sheet I want the server name to also change in all of the other sheets. If possible I'd like to be able to make the change in any of the 3 sheets and have it replicate, not just one. It's set up so that the row numbers will match in each sheet, i.e. server name X is in row 2 on all sheets.

Thanks in advance!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi and welcome to the Board!!!
Something like this in the ThisWorkSheet module
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address <> "$B$2" Then Exit Sub
Dim ws As String
ws = ActiveSheet.CodeName
If ws <> "Sheet1" And ws <> "Sheet2" And ws <> "Sheet3" Then Exit Sub
Application.EnableEvents = False
Sheet1.Range("$B$2") = Target
Sheet2.Range("$B$2") = Target
Sheet3.Range("$B$2") = Target
Application.EnableEvents = True
End Sub
Right Click the excel icon to the left of "File on" the menu bar and choose "View Code"
lenze
 
Upvote 0
Thanks Lenze. I am using Office 2007. I went to the Developer tab (I couldn't find 'File On' on the menu bar) and clicked on View Code. I pasted the code in there and saved it, but nothing happened. Obviously I'm doing something wrong? :)

thanks for your help!
 
Upvote 0
I don't know about Excel 2007's interface. Try opening the VBE with ALT+F11. You should should see the ThisWorkBook module in the Project Explorer(Left side of screen) You may have to call it up with CTRL+R

lenze
 
Upvote 0

Forum statistics

Threads
1,223,054
Messages
6,169,834
Members
452,284
Latest member
TKM623

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