?
Solved

VBA code error when running on Apple Mac

Posted on 2014-09-23
5
Medium Priority
?
141 Views
Last Modified: 2014-09-26
The 2013 VBA code at some stages pops up a userform that is dismissed when the user clicks on another sheet's tab. This operation works fine on Excel in Windows.

But on Mac, clicking on another tab causes an error. The userform.hide must require something that's not being done perhaps?
0
Comment
Question by:krakatoa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40338906
Care to share the code and what the error is?
0
 
LVL 16

Author Comment

by:krakatoa
ID: 40339376
Private Sub Worksheet_Activate()

    If UserForm1.Visible = False Then

        UserForm1.Show vbModeless
    
    End If

End Sub

Public Sub Worksheet_Deactivate()

    UserForm1.Hide

End Sub

Open in new window


I think the error is 1004.
0
 
LVL 16

Author Comment

by:krakatoa
ID: 40342946
Do you think that was not the relevant code? Would other routines intervene?
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 40343455
You can't have modeless forms on a Mac.
0
 
LVL 16

Author Comment

by:krakatoa
ID: 40343534
I see, thanks.

Then before I close this, would you know of any possible workaround to that?
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question