Code Not working

wlbamc

Board Regular
Joined
Apr 19, 2016
Messages
99
Office Version
  1. 2016
I have the following code which automatically copies from one tab to 4 other tabs.

Code:
rivate Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
If Target.CountLarge > 1 Then Exit Sub
With Application
  .EnableEvents = False
  .ScreenUpdating = False
End With
   If Intersect(Target, Range("A:E")) Is Nothing Then Exit Sub
   For Each ws In Sheets(Array("LTC and CHC Panel Processes", "Discharge and transfer arrangem", "Other measures"))
      ws.Cells(Rows.Count, Target.Column).End(xlUp)(2).Value = Target.Value
   Next ws
   Target.Offset(, 1).Select
With Application
  .EnableEvents = True
  .ScreenUpdating = True
End With
End Sub
Sub Chk()
Application.EnableEvents = True
End Sub

I have saved this onto our shared drive for other people to use, I am on Excel 2016 and they are on 97-2003. For some reason the code doesn't work for them but does for me, we have tried saving it as a macro enabled and in the 97-2003 version but no luck. Does anyone know why please
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
The CountLarge property was introduced in XL2007.
Try instead:

If Target.Count > 1 Then Exit Sub
 
Upvote 0
Many thanks, giving it a go, working so far, will wait for the user error!!
 
Upvote 0

Forum statistics

Threads
1,216,474
Messages
6,130,841
Members
449,598
Latest member
sunny_ksy

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