+ Reply to Thread
Results 1 to 4 of 4

Delete last filled row (coumns A to H)

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    Dresden
    Posts
    68

    Delete last filled row (coumns A to H)

    Hello All,

    I use a macro to copy some data from a .csv file. The data is copied to columns A to H (starting from row 31), the number of rows filled depends on the particular case and is not fixed. The first column gets filled with the serial numbers.

    the problem is that in the last row cells of columns B to H contain three dashes (---) .

    I have written a simple code that finds the last filled cells in column A. After having found this row, I would like to clear the cells or delete them. the below mentioned simple code does finds the last filled row but I am not able to find a command to delete or clear the cells of this row. Can somebody please help !!


    I know there are many more efficient way of doing this but still if anyone can complete this code, i'll be glad

    Thanks...

    Please Login or Register  to view this content.
    Last edited by arora; 01-30-2009 at 09:40 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Delete last filled row (coumns A to H)

    No need to loop through & test each cell

    Try this macro

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    08-08-2008
    Location
    Dresden
    Posts
    68

    Re: Delete last filled row (coumns A to H)

    hello mudraker,

    thanks for macro and your prompt reply.

    regards
    arora

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Delete last filled row (coumns A to H)

    arora

    Once you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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