+ Reply to Thread
Results 1 to 6 of 6

code doesnt work after upgrade to 2010

  1. #1
    Registered User
    Join Date
    09-02-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    15

    code doesnt work after upgrade to 2010

    I designed this code on Excel 2007 and when I upgraded to 2010, it no longer works. It deletes everything except the header row. Any help would be appreciated.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: code doesnt work after upgrade to 2010

    Testing it in Excel 2010, it seems that the first 2 lines of code (Attribute...) are wrong. I commented them and it seems to work. At least, the process goes through the lines of code smoothly.

  3. #3
    Registered User
    Join Date
    09-02-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: code doesnt work after upgrade to 2010

    Yea, I can get it to run through the code smoothly, but it deletes all the contents of the cells, except the header row. I was thinking it might be something with the line that specifies format type for the time/date field.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: code doesnt work after upgrade to 2010

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: code doesnt work after upgrade to 2010

    Do you want to delete the cells that contain 10:00:00 AM or the rows that contain 10:00:00 AM in column C ?

    I would delete those cells/rows before sorting.
    And specify the sheet in which this takes place.

    Please Login or Register  to view this content.



  6. #6
    Registered User
    Join Date
    09-02-2010
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: code doesnt work after upgrade to 2010

    No, I want it to delete all rows except the ones containing 10:00:00 AM.

+ 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