Copy Script from Sheet1 to Sheet2

Arcticwarrio

Active Member
Joined
Dec 6, 2005
Messages
439
Hello again all.
Probably a simple one this so i'll keep it short,

i have a sheet called Template with this code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 And Target.Row = 2 Then
If Target.Cells.Count <> 1 Then Exit Sub
boo = Target.Value
boobs = Target.Offset(-1, 0).Value
nocold = 4
WO_update_cust
End If
If Target.Column = 2 And Target.Row = 3 Then
If Target.Cells.Count <> 1 Then Exit Sub
boo = Target.Value
boobs = Target.Offset(-2, 0).Value
nocold = 5
WO_update_cust
End If
End Sub

i have another script than unhides a sheet and copys whats in the template to it.

Simply put i want to copy this script to it too.

i used a copy and add sheet method but i need to be able to do this in a shared workbook, hence the hidden sheets instead.

thanks again.
Arctic.
 
Why do you have so many worksheets?

That is also a bad idea.:)
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,613
Messages
6,125,836
Members
449,266
Latest member
davinroach

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