Greetings, all,
Can anyone see a reason why the following code---which executes precisely as expected on a Windows machine---fails to execute on a Mac (the Mac user is running Excel 2011):
Private Sub worksheet_change(ByVal target As Range)
Application.EnableEvents = False
If Not Intersect(target, Me.Range("eraserange")) Is Nothing Then
Me.Range("b10") = Me.Range("b5")
End If
Application.EnableEvents = True
End Sub
A little more detail:
• it's a one-sheet Excel file I created in Excel 2016, Windows 10 machine, .xlsm extension, and emailed to the Mac user;
• the Mac user is familiar with enabling macros on Excel files; indeed, I've emailed him plenty of Excel files before (created on my machine, just as described above), which contain macros that fire upon the mouse-clicking of an object on a sheet---and those work fine for him.
• "eraserange" is just a rectangular, contiguous array of cells on that sheet of which cell B5 is a member.
• the user is instructed to enter something in B5, and whatever is entered SHOULD auto-populate into cell B10.
On various Windows machines it works fine; on the Mac it didn't. And as mentioned, that same Mac guy runs other macros in Excel files I send him without a hitch; the only difference is that they've always been ones which execute with a mouse-click on something, whereas this problem one is a Worksheet Change trigger.
I really appreciate anyone's insight into what the bug-a-boo is here. Been chasing this thing around for two days now. Thanks!
Bookmarks