Results 1 to 4 of 4

Thread: Getting Excel VBA written using Windows to work on Excel for the MAC

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    148

    Getting Excel VBA written using Windows to work on Excel for the MAC

    I am trying to get my Excel VBA code written on a PC to operate properly on a MAC. I have determined that the MAC version is missing key libraries. How would I go about locating the library or at minimum determining if it even exists for the MAC (for example, regular expressions).

    On my PC version, I can determine the .dll file associated with each reference.

    For example:
    Microsoft XML, v6.0 ==> c:\Windows\System32\msxml6.dll
    Microsoft Internet Controls ==>c:\Windows\SysWOW64\ieframe.dll
    Microsoft InkEdit Control 1.0 ==> C:\Windows\System32\Inked.dll

    Should I try and search for these same files on the MAC and then attach them as references. Should I try to find MAC versions? If so, where? I need to provide the instructions over the telephone to the person who uses the mac. I don't own one and do not have easy access to one.

    The person would like to use the program without using a windows emulator.

    Thank you.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Getting Excel VBA written using Windows to work on Excel for the MAC

    i am sure there is no equivalent to any of those controls on a mac

    i would suggest removing the parts of the code that rely on those controls or better using a Mac program and automating it, rather than trying to make windows programs work on a Mac operating system
    i do not believe VBA can use features of the Mac system, that are outside of the excel object
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2010
    Posts
    148

    Re: Getting Excel VBA written using Windows to work on Excel for the MAC

    This is what I'm slowly figuring out.

    I had setup a database using Excel for my track and field team to record our member's performance marks. Excel was an easy choice because all the coaches had it on their computer and was somewhat familiar with using it. Unfortunately, the head coach uses a Mac. It was fine at first but, over time, the code had increased in complexity without any though of compatibility issues and without constant checking to see if worked on the Mac. I don't thinks it was far fetched to think that I should be able to do anything with Excel for the Mac that I can do with Windows. I realized early that there was an issue with Regular Expressions, but I thought that was it. It's worse than I thought! Why any serious computer user would choose that OS is beyond me.

    Never the less, I have been brushing up on MySQL with the hope of eventually converting to a true database and then just use Excel to perform queries. This will provide the impetus. OH WAIT.... a quick Google search indicates that there may be an issue with Mac Excel VBA having access to ODBC drivers.... WOW.

    I'm still going to convert the database to MySQL. Maybe I'll use a web based server to perform queries from the MAC and save as .csv files that can be imported into Excel.

    Thanks again for your response.

    Quote Originally Posted by westconn1 View Post
    i am sure there is no equivalent to any of those controls on a mac

    i would suggest removing the parts of the code that rely on those controls or better using a Mac program and automating it, rather than trying to make windows programs work on a Mac operating system
    i do not believe VBA can use features of the Mac system, that are outside of the excel object

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Getting Excel VBA written using Windows to work on Excel for the MAC

    just put the whole app onto the web and let them all run from there, or else use some terminal server or citrix

    i was being polite before and did not say tell them get a real computer
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width