+ Reply to Thread
Results 1 to 7 of 7

problem deleting last cell in a specific row

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    problem deleting last cell in a specific row

    hey everyone

    i'm using a table like this one :

    A B C D

    1 Main | value | value | value
    2 Extra | value | value | value
    3 Main | value | value | value
    .
    .
    n Extra | value | value | value

    i want to delete every cell in column "D" only when cell in column "A" contains "Extra" value.

    help plz
    regards
    Last edited by mehdoush; 02-24-2009 at 02:29 PM.

  2. #2
    Registered User
    Join Date
    03-16-2004
    Location
    UK
    MS-Off Ver
    2003
    Posts
    85

    Re: problem deleting last cell in a specific row

    Try inserting this into a code module and running it.

    Please Login or Register  to view this content.
    Phil

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: problem deleting last cell in a specific row

    Yuck! Loops! And this one doesn't even find the end of the data or have an exit! or use defined variables ARAARARGGRGH!

    How about:
    Please Login or Register  to view this content.
    HTH
    Last edited by Cheeky Charlie; 02-24-2009 at 02:02 PM.

  4. #4
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    Re: problem deleting last cell in a specific row

    sorry incjourn, it doesn't work on my excel workbook

    ok charlie i'll try your example now!
    regards!
    Last edited by mehdoush; 02-24-2009 at 02:03 PM.

  5. #5
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    Re: problem deleting last cell in a specific row

    sorry Cheeky Charlie even this example didn't work!

    more help plz
    regards

  6. #6
    Registered User
    Join Date
    02-20-2009
    Location
    La, CA
    MS-Off Ver
    Excel 2003
    Posts
    70

    Re: problem deleting last cell in a specific row

    it works now here's the code, i reused another code with some modif given by "incjourn":

    Please Login or Register  to view this content.

    regards

  7. #7
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: problem deleting last cell in a specific row

    Anyone searching and finding this thread; please don't use code like this.

    Both codes work as you gave no example and barely any explanation it's not that surprising they didn't work for you.

    In any case, it's spelled "thank you"
    Last edited by Cheeky Charlie; 02-25-2009 at 07:35 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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