Whats wrong with this code?

CHC Consulting LLC

Active Member
Joined
Aug 14, 2008
Messages
346
This code is hanging up at the section in bold.... any thoughts?


Private Sub worksheet_change(ByVal target As Range)

'Fills in Trouble Sheet worksheet when a date is populated in TROUBLE column
If target.Column = 29 Then
Thisrow = target.Row
If target.Value <> "" Then

Worksheets("DATA").Activate
Cells(ActiveCell.Row, 3).Copy
Worksheets("Trouble Sheet").Activate
Range("A1048576").End(xlUp).Select
Selection.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues, operation:=xlNone, skipblanks _
:=False, Transpose:=False

End If
End If


End Sub
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Is the event code in the Data worksheet or in the Trouble Sheet worksheet?
 
Upvote 0
maybe add application.enableevents = false near the top of the code

and application.enableevent = true near the bottom
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,240
Members
452,898
Latest member
Capolavoro009

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