Cursor disappears after running Macro with InputBox on Excel for Mac 2016

djarn1

New Member
Joined
Jul 25, 2018
Messages
6
Hello wonderful excel community,

I'm creating a template for users of both mac and excel and have received feedback that the cursor occasionally disappears on Mac Excel. I've done some testing and have discovered that it appears to happen after I use an input box.

This only happens when you press the 'enter' key. If you select 'OK' with the mouse, it seems to be fine.

Here's a link to a screen capture. The first time I choose select 'OK' with the mouse and it works fine, the 2nd time I hit 'Enter' and it disappears. Is this just a bug with Excel for Mac or is there something I can do about it?

https://streamable.com/dmx5z

Here's the code:



Sub EPW()

Dim EnteredPassword As String
Dim Password As String

Password = "password"

EnteredPassword = InputBox("Insert Password")

If EnteredPassword <> Password Then

MsgBox "Sorry! Wrong Password!"

Application.DisplayAlerts = False
ActiveWorkbook.Close
Application.DisplayAlerts = True

Exit Sub
End If

End Sub



Thank you wonderful people!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You could try adding a line to select a cell on the active sheet after the message box to see if it 'reappears'
 
Upvote 0

Forum statistics

Threads
1,215,236
Messages
6,123,798
Members
449,127
Latest member
Cyko

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