+ Reply to Thread
Results 1 to 7 of 7

VBA code does not work on Mac Excel 2010

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    VBA code does not work on Mac Excel 2010

    Hi there,
    I would be very glad if someone of you could help me with code below. I wrote it on MS Excel 2010 and works fine. Now I would like to run on Mac version, but no chance. The code is interupted in first .clearcontents command, if I mark it as comment, it is interupted on next row. I have lastest version of Mac Excel 2011. I put here all code because if I try single command .clearcontents on Mac everything works fine. Hope somebody already faced same trouble and can help me

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code does not work on Mac Excel 2010

    Hi,

    Are you saying that in the Immediate window in the Immdeiate window of the VBE
    Please Login or Register  to view this content.
    works OK?

    Ae you able to upload the workbook?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: VBA code does not work on Mac Excel 2010

    Hi Richard,

    I have tried it in test Sub() and as one-row-code it works right. Here you can find part of workbook. If I click Confirm button everything is ok even dynamically added elements (like textbox). The problem appears if I run Prepare button as I described above. Just to remind on Windows Excel version works fine. Thank you in advance for any tips or ideas.

    cheers,

    Tomas
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code does not work on Mac Excel 2010

    Hi,

    The VBE is password protected. Are you able to share it with us?

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: VBA code does not work on Mac Excel 2010

    Of course, sorry for password:-)
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: VBA code does not work on Mac Excel 2010

    Hi,
    I tried to track the code and after first .clearcontents command macro will finish, no error, no message, just finished. Any idea? All sheets exist. Could be something in VBA settings, add-ins?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-04-2013
    Location
    Prague
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: VBA code does not work on Mac Excel 2010

    Hi,

    nobody knows? :-(

+ 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 created in Excel 2010 does not work with Excel 2013
    By Steve@Rugby in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2014, 10:14 AM
  2. Replies: 0
    Last Post: 12-18-2013, 07:59 PM
  3. My Excel 2003 vba code does not work in excel 2010. Somebody help!
    By DeNam in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-01-2013, 10:05 AM
  4. Code won't work in Excel 2003, but will in 2007/2010
    By Mak2145 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-30-2012, 12:23 PM
  5. code doesnt work after upgrade to 2010
    By jmckee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2011, 09:57 AM

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