+ Reply to Thread
Results 1 to 8 of 8

Building a userform that loads on both MAC and PC ?

  1. #1
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    Building a userform that loads on both MAC and PC ?

    Hello guys,
    I've tried creating a userform on Excel 2010, and loading it on a mac with Excel for MAC 2011, and I've already run into a few basic problems (userform1.show fails with run time error 80020005). However, if I launch the userform it loads, but it looks terrible (in comparison to the pc version).

    Does anybody have a good generic way to launch a userform from an excel button, and have it looks like a normal mac interface ?

    this is so frustrating.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Building a userform that loads on both MAC and PC ?

    You might want to re-post this in this part of the forum
    http://www.excelforum.com/for-other-...mobile-os-etc/
    It is better suited for Mac questions. Also, you might be able to search there and get better results to your issue.
    I'm not a Mac user, but I have heard and read that trying to us a PC version of excel doesn't work to well on a Mac and vise-versa, especially if there is code, UserForms etc. involved. It's kind of like trying to play a PlayStation game on Xbox, they are not really compatible.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    Re: Building a userform that loads on both MAC and PC ?

    Dont bother moving this post.
    Last edited by spyrule; 08-03-2016 at 05:38 PM.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Building a userform that loads on both MAC and PC ?

    I think you would have to ask one directly to move it for you. It might get moved if one of them sees this though.

  5. #5
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    Re: Building a userform that loads on both MAC and PC ?

    Actually, after further testing, and using the immediate window, I was able to determine that In my code I was trying to set the look/feel of the controls on a userform.

    However, I had created a Const , but it seems that was what was causing my error. Changed the Const to a Dim, and the userform now loads as expected.

  6. #6
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Building a userform that loads on both MAC and PC ?

    Hmmm....glad it worked for you. Maybe they have finally figured out a way for the 2 to be compatible.

  7. #7
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    Re: Building a userform that loads on both MAC and PC ?

    Actually as of Office for Mac 2011, a lot of VBA stuff was put back in (and made to be 80% compatible). The only things that fail are code chunks that call on system level libraries for certain functions.
    For example this works perfectly (checks if an text in a textbox matches all correct email patterns) on Windows, fails horribly on OSX (for obvious reasons):
    Please Login or Register  to view this content.
    hence the reason why I modified it slightly to this:

    Please Login or Register  to view this content.
    However, a lot of functions work the same on both, the only thing I have discovered is that Mac seems to prefer to not use the ME. object, but prefers the actual object name USERFORM.Control.item("ControlName")

  8. #8
    Registered User
    Join Date
    07-22-2005
    Location
    canada
    Posts
    73

    Re: Building a userform that loads on both MAC and PC ?

    Lastly, the only thing that wasn't done well is the look and feel of a userform. Without modifying the font size/type and background color, the userform tends to have very small font and tiny controls, and be very dark background.

    That's what I was working on during this problem.

    I'll post my final look/feel code for anybody who wants it for the future.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code that loads another userform but stops until user interacts
    By Harribone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2015, 03:50 PM
  2. Userform Combobox - select from list, store this as default each time userform loads
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2014, 07:48 AM
  3. [SOLVED] Building dependent comboboxes on an existing userform
    By Sway1978 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2013, 11:11 AM
  4. Need help building Userform
    By bergjes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2012, 05:48 AM
  5. Replies: 2
    Last Post: 10-08-2012, 12:49 PM
  6. building a userform
    By stevesunfold in forum Tips and Tutorials
    Replies: 9
    Last Post: 05-05-2012, 05:45 AM
  7. [SOLVED] X button query:loads up the userform
    By Greg B in forum Excel General
    Replies: 2
    Last Post: 09-02-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1