+ Reply to Thread
Results 1 to 3 of 3

Deleteing elements in a table quickly

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Panama
    MS-Off Ver
    Excel 2007
    Posts
    90

    Deleteing elements in a table quickly

    Good day,

    I want to delete all elements in a table except the first one,

    recording the macro just shows the following code multiple times

    Please Login or Register  to view this content.
    I created a for loop for it,

    Please Login or Register  to view this content.
    however the for loop is taking too long,

    is there a way to Select row 2 all the way to the last one and delete them all?

  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: Deleteing elements in a table quickly

    If you want to delete everything apart from the header you can use DataBodyRange.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    12-27-2012
    Location
    Panama
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: Deleteing elements in a table quickly

    Works like a charm and keeps the formula for the columns,

    thanks!!

+ 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] Counting number of elements in a pivot table
    By Zealotwraith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 01:26 AM
  2. quickly modifying a table
    By mouseman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 11:13 AM
  3. Resources for Using VBA to Manipulate Silverlight Elements like HTML Elements
    By linear_db in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 04:43 PM
  4. Taking elements from a table dependant upon values
    By ormerods in forum Excel General
    Replies: 3
    Last Post: 10-29-2011, 06:43 AM
  5. Make a list from a table of elements ?
    By Lucy Lastic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2005, 09:10 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