+ Reply to Thread
Results 1 to 5 of 5

Making .find command compatible with Excel 2011 (Mac)

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Making .find command compatible with Excel 2011 (Mac)

    I am sure there is a very simple solution to this problem but I have had no luck in finding an answer.

    Essentially, I have a macro that performs a .find function on a sheet and loops through all the cells on that sheet. An example is shown below;

    Please Login or Register  to view this content.
    My problem is as follows. In my windows version of excel (Excel 2013) it works flawlessly. When used with a Mac version (Excel 2011) the code does not return the values from the .find command and returns the interior color as black rather than the color that it should actually find and identify.

    As far as I can see, this part of the code in my workbook seems to be the only one deciding not to work so I assume that the .find command must work somewhat differently in Excel 2011.

    The only thing I have done that may have an impact here is I have disabled the 'Microsoft VBScript Regular Expressions 5.5' reference through the VBE as when the workbook is opened in Excel 2011 it is listed as 'Missing' which was causing my code to error.

    This wouldn't bother me too much if I hadn't spent my whole Easter weekend building a workbook for a friend who owns a Mac. So now I just need to iron out this last crease to complete my work.

    Thanks in advance.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Making .find command compatible with Excel 2011 (Mac)

    I'm surprised that code runs in 2011-there is no SearchFormat argument in 2011

    it also appears you are performing the same find 3 times in succession and I can't see why?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Making .find command compatible with Excel 2011 (Mac)

    That was what I was afraid of. Seems like such an important feature to be omitted. Pardon my ignorance, but surely there is some alternative in Excel 2011 to the find argument.

    I have attached a sample workbook that shows you what I am trying to achieve (and why I have the find argument running three times).

    If anyone could assist on an alternative to what I am trying to do here I would really appreciate it.

    Dummy Workbook.xlsm

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Making .find command compatible with Excel 2011 (Mac)

    you're not actually using the searchformat so I don't really see the problem?

    I think you missed my point about the find-you are performing the exact same find operation 3 times which is unnecessary
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-18-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Making .find command compatible with Excel 2011 (Mac)

    It is all running smoothly now.

    Thanks for your help JosephP. Very much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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