Code stopped working no reason

chef

Well-known Member
Joined
Jul 10, 2002
Messages
610
Office Version
  1. 365
  2. 2016
I have the simple code below and on various workbooks that have worked for years.
Just a list of staff and when I click it places name in A3 and I calculate various interations from there.

For some reason this has stopped working and I'm at a loss as to why. I havent changed anything on the code and everything looks in order.
Automatic calculation is on.
Have similar type of code on code on other workbooks and they dont work now either. Finding really strange and at a loss.

The only thing I have read is that there is some additional security features from Microsoft in Jan but unsure of impact or how to resolve, if indeed this is now causing a problem

Can anyone suggest a solution please as the code is correct?


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("C5:C35")) Is Nothing Then
Range("A3").Value = Target.Value
End If
End Sub

regards
Ian
 
Many thanks again and I already have had macros enabled in the trust centre as default for years.

I'll get IT involved to see if I can resolve this niggle and potential network issue around adding trusted locations on work network.
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Sad to hear that nowadays ... we are invaded by Security measures which end up preventing people from doing the simplest things ... !!! ;)
 
Upvote 0
just in case this helps another person...
My IT dept were unsure how to fix problem, but I did some digging and think its a new security measure from Microsoft from article I read
anyhoo I applied the following and now have them working again

Go into Option
Trust Centre Settings
Click on Trusted Locations
Add New Location

add path where your files sit ( I added a few locations on different drives and you can tick box to allow sub folders as well

Hope helps and thanks again for responses
regards
Ian
 
Upvote 0
Thanks for sharing solution with the Forum (y)
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

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