How can I test if a Macro if firing?

Z

ZZBC

I was given this code from another post "How do I convert a cell(s) from
the formula to it's contents?" .

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 1 Then Exit Sub
With Sheets("Output_5Tab")
.Range(Target.Address).Value = Target.Value
End With
End Sub

When I change in my input sheet "Int_5Tab" I get no indication that
anything is happening in the output file "Output_5Tab"???
Any recommendations ?
 
B

Bob Phillips

Maybe write to the statusbar?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 1 Then Exit Sub
With Sheets("Sheet2") '"Output_5Tab")
.Range(Target.Address).Value = Target.Value
Application.StatusBar = Target.Address & " copied to Output_5Tab"
End With
End Sub



--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
Z

ZZBC

Bob said:
Maybe write to the statusbar?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 1 Then Exit Sub
With Sheets("Sheet2") '"Output_5Tab")
.Range(Target.Address).Value = Target.Value
Application.StatusBar = Target.Address & " copied to Output_5Tab"
End With
End Sub



--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
Got NOTHING!
so, I guess the Macro is not firing ?
I read something at one time about 'turning on Macros' ... ??? ... could
something like that be the problem?
I am running Win 98 SE, and Excell 2000
 
O

Otto Moehrbach

Bob
In troubleshooting, like you are doing, just put a MsgBox command as the
first line of your macro. Remove the line after you get things working.
Use a line like:
MsgBox "It's running!"
Then, if the macro fires, the first thing it does is display the message
box. HTH Otto
 
Z

ZZBC

Otto said:
Bob
In troubleshooting, like you are doing, just put a MsgBox command as the
first line of your macro. Remove the line after you get things working.
Use a line like:
MsgBox "It's running!"
Then, if the macro fires, the first thing it does is display the message
box. HTH Otto
Thanks!
 
B

Bob Phillips

Are you sure you have the worksheet event code in a worksheet code module?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
Z

ZZBC

Bob said:
Are you sure you have the worksheet event code in a worksheet code module?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
Thanks for taking the time to make a suggestion!
I found the problem ... I had the security level set to high ... macros
not turned on .... a real DUMMY!
 
Top