+ Reply to Thread
Results 1 to 7 of 7

Can I make my Excel Macro work on a Mac computer?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-19-2011
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    15

    Can I make my Excel Macro work on a Mac computer?

    Dear Excel users

    I have written an Excel macro, which do a lot of calculations via loops, conditional statements, when some command buttons are pressed. Numbers are being placed in cells and there are coloring of cells, but no interaction with the Operating System (files, etc.). My macro is made for educational purposes and will run on Windows computers. However quite a few of our students own a Mac computer, so I wonder if I can somehow make my Macro run on these as well? Is command buttons a problem? If so, is there a way to work around it?

    NB! We use the newest Excel software via Microsoft 365.

    Kind regards,

    Erik

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: Can I make my Excel Macro work on a Mac computer?

    As long as they don't call for any windows API or libraries, they should work fine.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Can I make my Excel Macro work on a Mac computer?

    Quote Originally Posted by erik11 View Post
    Is command buttons a problem? If so, is there a way to work around it?
    If they are ActiveX buttons, they won't work on a Mac, but you can possibly replace them with shapes.

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: Can I make my Excel Macro work on a Mac computer?

    Shapes shouldn't be necessary as there is still the form control buttons which are supported on Mac.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Can I make my Excel Macro work on a Mac computer?

    You can use either, I just find the buttons to be ugly & prefer shapes.

  6. #6
    Registered User
    Join Date
    04-19-2011
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    15

    Re: Can I make my Excel Macro work on a Mac computer?

    Thanks for the replies. I actually agree that the buttons are not that smart looking anymore - look like it was done 20 years ago. Is it possible to use a shape or Form button instead of a Command Button? What is needed is that the code is executed when I press this item (Form button or shape). Here is a tiny part of the code:


    Private Sub CommandButton4_Click() 'Step in votes
    Dim PartyNumber As Integer
    PartyNumber = Cells(4, 8)
    Cells(StartRow + PartyNumber, 2) = Cells(StartRow + PartyNumber, 2) + Cells(4, 9)
    Call CommandButton1_Click
    End Sub

    Kind regards,

    Erik

  7. #7
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Can I make my Excel Macro work on a Mac computer?

    Just insert your shape, right click on it and assign a macro.

+ 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. excel formulas works on my computer and not on my Work computer?
    By Mark7554 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-27-2023, 09:32 AM
  2. How can I make my workbook with VBA codes and macros work on another computer?
    By readysetgo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2021, 04:13 PM
  3. Replies: 9
    Last Post: 01-09-2019, 12:33 PM
  4. [SOLVED] Macro to work on any computer
    By Oeysbrei in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2017, 07:26 PM
  5. Macro should not work any other computer
    By janagan in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-21-2015, 05:52 AM
  6. Code to make an excel cell work like F2 command in Computer
    By boddulus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2015, 09:40 AM
  7. Macro does not work on different computer
    By kaffein in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 03:46 PM

Tags for this Thread

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