N
Nils
With attached code - how do I add if cell a1 equals "x"
then run code? I can get it to run the column hidden
function with any input, but I would like to be able to
have specific. Also, Can I set keycells to be several
cells in different locations on worksheet/
Thanks a lot for your help Jim!
Nils
==============================================
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Range("A1:a1")
If Not Application.Intersect(KeyCells, Range
(Target.Address)) _
Is Nothing Then
' Display a message when one of the designated
cells has been
' changed.
' Place your code here.
MsgBox "Cell " & Target.Address & " has changed."
'
' hidden2 Macro
' Macro recorded 10/28/2003 by Nils
'
Columns("I:L").Select
Selection.EntireColumn.hidden = True
End If
End Sub
then run code? I can get it to run the column hidden
function with any input, but I would like to be able to
have specific. Also, Can I set keycells to be several
cells in different locations on worksheet/
Thanks a lot for your help Jim!
Nils
==============================================
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Range("A1:a1")
If Not Application.Intersect(KeyCells, Range
(Target.Address)) _
Is Nothing Then
' Display a message when one of the designated
cells has been
' changed.
' Place your code here.
MsgBox "Cell " & Target.Address & " has changed."
'
' hidden2 Macro
' Macro recorded 10/28/2003 by Nils
'
Columns("I:L").Select
Selection.EntireColumn.hidden = True
End If
End Sub