+ Reply to Thread
Results 1 to 5 of 5

Desperately Need Help Running Macros on Mac Excel 2011

  1. #1
    Registered User
    Join Date
    09-17-2016
    Location
    Akron, OH
    MS-Off Ver
    Microsoft Office for Mac 2011
    Posts
    2

    Desperately Need Help Running Macros on Mac Excel 2011

    Hi all,

    I am new to the forums and am having an issue I desperately need help with. I am a junior majoring in chemical engineering and am taking a Process Economics class where we have to use an excel sheet for process costing that came with our book (Analysis, Synthesis, and Design of Chemical Processes by Turton). Long story short, it was created in an old version of Excel for Windows and none of the macros/buttons will run on Excel for Mac 2011. If anyone who is good with VBA (I only have very basic knowledge, i.e. creating a user form, basic coding) could take a look at it and possibly even make it able to run on Mac (or at least tell me that I am screwed and need to run Windows), I would be so eternally grateful. The format is "Excel 97 - 2004 Workbook (.xls)" I have tried saving it as a .xlsm file but it made no difference. The buttons show up as pictures and are unclickable. There are so many modules and user forms I don't even know where to begin. If someone could take a look at it that would be wonderful (I had to attach it as a zip file because it was too large to attach the workbook (1.77 MB). Thanks for reading!

    -Kyle
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Desperately Need Help Running Macros on Mac Excel 2011

    My what a confusing workbook. I'm not surprised that the author didn't use Option Explicit.

    The first thing is that it uses ActiveX controls, but Mac doesn't support ActiveX, but it does convert them into shapes.

    What you have to do is go through all the sheet modules and change all the Private subs into Public. And then go through that sheet and right click on the buttons and assign the appropriate sub to the button.

    Then you have to figure out how to use the user forms that are being called (what kind of twit uses different forms for Add and Edit, they are the same functionality.)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Desperately Need Help Running Macros on Mac Excel 2011

    The buttons used were ActiveX-type buttons which are not compatible with Mac (as I understand it).
    • I replaced the ActiveX-type buttons with three new Form-type buttons
    • Moved their three procedures from the worksheet's code module to a new code module called Buttons
    • Assigned those three procedures to the three new buttons

    This only addressed the three buttons issue. I didn't alter any code other than moving it to a new module. You may or may not have other issues with a Mac. I don't have a Mac to test with.
    Attached Files Attached Files
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    09-17-2016
    Location
    Akron, OH
    MS-Off Ver
    Microsoft Office for Mac 2011
    Posts
    2

    Re: Desperately Need Help Running Macros on Mac Excel 2011

    Quote Originally Posted by AlphaFrog View Post
    The buttons used were ActiveX-type buttons which are not compatible with Mac (as I understand it).
    • I replaced the ActiveX-type buttons with three new Form-type buttons
    • Moved their three procedures from the worksheet's code module to a new code module called Buttons
    • Assigned those three procedures to the three new buttons

    This only addressed the three buttons issue. I didn't alter any code other than moving it to a new module. You may or may not have other issues with a Mac. I don't have a Mac to test with.

    Wow the first sheet buttons are working now, thanks a lot for that! There are four more buttons on some of the other sheets (Sheet: COM Summary, Button: Add Materials. Sheet: Cash Flow Analysis, Button: Generate CFD. Sheet: Monte Carlo Simulation, Button: Run Economic Analysis. Sheet: User Options, Button: Update Preferences). Is there any way you can go through and do what you did with the three buttons on the first sheet to those four buttons on the other sheets, or explain how you did it (I know you already did but like I said my VBA is meh)? I can PayPal you some cash for the trouble, I really appreciate the help here. +repped

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Desperately Need Help Running Macros on Mac Excel 2011

    If you had given it a try, I think you would have figured it out. It was just three easy steps.

    Going to bed now.
    Attached Files Attached Files

+ 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. Macro = Mac NO (Macros Don't Work in Excel for Mac 2011)
    By Merf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2015, 01:50 PM
  2. Macros not running in MAC 2011
    By KSALS in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-18-2014, 12:57 PM
  3. [SOLVED] How to stop a macros in mac excel 2011
    By carlbrooks in forum Excel General
    Replies: 5
    Last Post: 11-06-2013, 02:01 PM
  4. Running simple code in Mac OS (10.8.3) with Excel for Mac 2011 (v14.3.2)
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-29-2013, 06:46 AM
  5. [SOLVED] Converting Existing formulas into Macros in Excel 2011
    By Jhertilus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2012, 11:35 PM
  6. Help with Date Macros - eg. Change Values From Jun 5, 2011 to 05/06/2011
    By Red2Black in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-14-2011, 08:44 AM
  7. Excel 2011 Macros for Mac
    By dwhitey1124 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2011, 12:50 AM

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