ok here it is.....I have this bit of code which I found in here:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("A1:G14")) Is Nothing Then Exit Sub
Application.EnableEvents = False
MsgBox "Hey, leave me alone!", 48, "Sorry, I'm protected."
Application.Undo
Application.EnableEvents = True
End Sub
Now on a clean sheet this works fantastic but the sheet I want to add it to has something already in the Worksheet change part and if I add to that I get a message saying Ambigous Name. I am a little unsure on these automatic loading macros so would appreciate where I can put it to load. This is the begining of the next piece of code:
Option Explicit
Dim iReUsedInk As Integer, iQtyOnStock As Integer
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
it highlites the Dim when it says the Ambigous name
thanx for your time
3D
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Intersect(Target, Range("A1:G14")) Is Nothing Then Exit Sub
Application.EnableEvents = False
MsgBox "Hey, leave me alone!", 48, "Sorry, I'm protected."
Application.Undo
Application.EnableEvents = True
End Sub
Now on a clean sheet this works fantastic but the sheet I want to add it to has something already in the Worksheet change part and if I add to that I get a message saying Ambigous Name. I am a little unsure on these automatic loading macros so would appreciate where I can put it to load. This is the begining of the next piece of code:
Option Explicit
Dim iReUsedInk As Integer, iQtyOnStock As Integer
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
it highlites the Dim when it says the Ambigous name
thanx for your time
3D