Results 1 to 9 of 9

Excel VBA RemoveDuplicates not working as expected

Threaded View

mcwsky09 Excel VBA RemoveDuplicates... 07-26-2014, 05:51 PM
xladept Re: Excel VBA... 07-26-2014, 06:22 PM
mcwsky09 Re: Excel VBA... 07-26-2014, 06:38 PM
xladept Re: Excel VBA... 07-26-2014, 07:22 PM
mcwsky09 Re: Excel VBA... 07-26-2014, 08:34 PM
kalak Re: Excel VBA... 07-26-2014, 08:57 PM
mcwsky09 Re: Excel VBA... 07-26-2014, 09:24 PM
alansidman Re: Excel VBA... 07-26-2014, 09:39 PM
mcwsky09 Re: Excel VBA... 07-27-2014, 12:06 AM
  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010,2011
    Posts
    5

    Excel VBA RemoveDuplicates not working as expected

    I am using code such as the following:

    Range("A1:B17").RemoveDuplicates Columns:=1
    When I run the code (see attached workbook) the "Columns:=1" part of the code seems to be ignored - and only rows where both A and B match are removed not sure why the VBA behavior does not match the GUI behavior.

    It does seem to be an issue only with Office for Mac - I am currently using Excel for Mac 2011 version 14.4.3 (140616) and it does not have this issue with Excel for Windows 2007 version 12.0.6683.5002 SP3 MSO 12.0.6683.5000
    Also tried it on Windows Office 2010 and it works as intend.

    I tried it on three different Macs - all with 14.4.3 same build without success. I don't currently have any other versions loaded up to test it on.

    I develop on Mac but need to maintain compatibility with both Mac and Windows versions as I have users on both.
    If I cannot get this working I may have to resort to much more complex looping type code.


    RemoveDuplicatesVBA.xlsm

    cross post at - http://www.mrexcel.com/forum/excel-q...-expected.html
    Last edited by mcwsky09; 07-26-2014 at 11:55 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 07-06-2014, 06:38 PM
  2. Excel Pro. Plus 2010 - Chart template not working as expected
    By mycroft in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-05-2014, 09:17 PM
  3. Excel autofill not working as expected
    By avp3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 02:14 AM
  4. [SOLVED] 'Find' not working as expected (Excel vba).
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-18-2013, 12:01 PM
  5. [SOLVED] RemoveDuplicates Not Working
    By MCSmith in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-03-2012, 04:05 AM

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