+ Reply to Thread
Results 1 to 7 of 7

Excel Windows 2007 to Macro 2011 Office

  1. #1
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Excel Windows 2007 to Macro 2011 Office

    Hi all

    I'm having a bit of trouble. I built something for a client at work in Windows Excel 2007 - and they now have Mac with Office 2011, and the code no longer runs.

    I've been having a look up online and trying to get my head round it, but I haven't been able to. Is anyone able to help me get in the right direction of getting this code suitable for a Mac on Office 2011?

    Thanks in adance

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Excel Windows 2007 to Macro 2011 Office

    Do you have errors? If so, where?

    One thing you must know is that you may only have one instance of application running therefore if Word is already running, CreateObject("Word.Application") will fail. YOu must test using GetObject(, "Word.Application") and if that will return Nothing then you may call CreateObject.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: Excel Windows 2007 to Macro 2011 Office

    Hi

    Thanks for your response, I am getting

    Can't find object error for

    Please Login or Register  to view this content.
    Looking in the library and says MISSING: MJicrosoft 14.0 Object

    But has 12?

    Sorry - I am also 'self-taught' through trial and error, and the lovely contributor on here, so my knowledge probably isn't as extensive as most

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Excel Windows 2007 to Macro 2011 Office

    Are you looking in Mac or in Windows? Word 14 is Word 2010 in Windows but 2011 on Mac; 12 is 2007 for Windows and 2008 for Mac. If you must support both versions it is better to late bind your code and not use references.

  5. #5
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: Excel Windows 2007 to Macro 2011 Office

    I'm looking in Windows myself, which is the biggest problem I am facing, trying to adapt it for Mac with Office 2011

    If 14 is 2010, would explain why I am missing it (operating on 2007) - wonder then if originally was built in 2007, for windows, would the top lines need to reference the new object - as I'm assuming the Mac user in 2011 wouldn't be missing this reference?
    If my answer helped pls click the star =)

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Excel Windows 2007 to Macro 2011 Office

    It is better if you remove the reference, then use late bound code:
    Please Login or Register  to view this content.
    Last edited by Izandol; 01-30-2014 at 12:08 PM.

  7. #7
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: Excel Windows 2007 to Macro 2011 Office

    You're an absolute star - thank you so much

+ 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. [SOLVED] Problem when changing Macro from Excel 2007 (Windows) to Excel 2011 (Mac)
    By TrialandError80 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 01-02-2014, 07:26 AM
  2. Replies: 2
    Last Post: 11-26-2012, 08:33 AM
  3. Mac Office 2011 macro compatibility?
    By CCharles in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 05:35 PM
  4. Personal Macro Workbook in Windows/Office 2007 does not open when Excel is opened
    By Rachel716 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-11-2012, 02:01 PM
  5. VBA code works in Mac 2011, not Windows 2007?
    By Jedouard in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2010, 01:40 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