Worksheet Change not working

mthiatt10

New Member
Joined
Aug 1, 2014
Messages
8
I have a workbook with 3 sheets that tracks orders. The first sheet has the ordered information. Once it is recieved I move that information to sheet2 delevired. Once the project the material was used for is complete it gets moved to sheet3 complete. I have a change event set up to move items from sheet1 to sheet2 when a delivered date is entered. The macro I have works but I am having issues with the change even triggering. It will trigger some times and other times it wont. It will also trigger for entries in other columns than column I that stores the delivred date.

<CODE><CODE\>
Rich (BB code):
sub Worksheet_Change(ByVal Target As Range)

If IsEmpty(Target) Then Exit Sub

If Target.Address = "I3" Then

If IsDate(Target) Then
'Stop any possible runtime errors and halting code
On Error Resume Next
'
Application.EnableEvents = False
Target.Select
Run "macro1"
'Turn events back on
Application.EnableEvents = True
'Allow run time errors again
On Error GoTo 0

End If
End If

End Sub
</CODE>

Rich (BB code):
Sub macro1()
Application.ScreenUpdating = False
   
    ActiveCell.EntireRow.Cut
    Sheet2.Activate
    Range("A65536").End(xlUp).Offset(1, 0).Select
    ActiveSheet.Paste
    Sheet1.Activate
    'Deletes the entire row within the selection if _
On Error Resume Next
Selection.EntireRow.SpecialCells(xlBlanks).EntireRow.Delete
On Error GoTo 0
   
Application.ScreenUpdating = True
End Sub

<CODE></CODE></CODE>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
As far as I can tell
Target.Address = "I3" Then
will always fail, since the (no arguments) .Address returns absolute addressing.
 
Upvote 0

Forum statistics

Threads
1,203,461
Messages
6,055,559
Members
444,799
Latest member
CraigCrowhurst

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