+ Reply to Thread
Results 1 to 6 of 6

fix coding

  1. #1
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    fix coding

    Hello,

    Can someone take a look at this coding and tell me why it makes some of the information I'm trying to sort disappear?

    Please Login or Register  to view this content.
    Attached is a sample you can use to show you what I mean and hopefully fix it to where it doesn't delete information.

    CheerZ!
    Wyldjokre69

    Sample11062014.xlsb

    P.s: the code takes the highlighted horses in Cells D & K and matches them up including the data in Cells E-O. Apply and see for yourself. If you can add a piece of coding which will keep the data that is not highlighted in pink and have it just match across all between E-O, that would be super.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: fix coding

    Is the data that's disappearing the data that's been highlighted using conditional formatting?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: fix coding

    yes, i don't know why though.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: fix coding

    It's because the formatting applied by conditional formatting isn't being recognised as 'real' formatting so VBA thinks those cells have no fill.

    So if you want to return only the data for horses in column D that don't have a match in column L then you'll need another approach.

    One way would be to add a helper column to the right of the data with this formula copied down.
    Please Login or Register  to view this content.
    That will return 0 if the horse in column D isn't found in column K.

    You could then filter on the helper column.

  5. #5
    Registered User
    Join Date
    12-28-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    54

    Re: fix coding

    Hello Norie,

    Is there a way to adjust the vba coding to read the data from the formula you just gave me?

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: fix coding

    Not sure what you mean.

    You could use code to create the helper column and the filter it.
    Please Login or Register  to view this content.

+ 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] Vb macro coding for transpose - complete coding?
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-02-2013, 11:16 PM
  2. [SOLVED] Vb macro coding for transpose - complete coding?
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-02-2013, 05:04 AM
  3. [SOLVED] CheckBox coding to work with ComboBox coding
    By JimExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 12:23 PM
  4. Coding and Reverse Coding a Questionnaire
    By lorr3 in forum Excel General
    Replies: 2
    Last Post: 11-18-2012, 06:43 PM
  5. Implant macro coding into ASP coding
    By Sam yong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2005, 06: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