+ Reply to Thread
Results 1 to 3 of 3

Macro to delete surplus rows.

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to delete surplus rows.

    Im using the following to find the last cell in a column then delete everything below it.

    Please Login or Register  to view this content.
    Column B contians a pivot table and all is fine unless the table data is too short.
    I do not want to delete anything above row 38. When the pivot table extends past row 38 no problem.
    Last edited by lander2; 06-19-2012 at 03:58 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro to delete surplus rows.

    Welcome to the Forum.

    The forum rules require that all VBA code be wrapped in code tags.
    Please edit your post to add the missing tags, then someone will help.

    When editing your post, just highlight the code then click the button the with # symbol on it.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    06-19-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to delete surplus rows.

    Thank you -

    I solved my own query - I have 2 charts just above row 38 and they were getting squished, I thought they had been cut or deleted. Changed the chart properties to dont move or size with cells and problem solved.
    Last edited by lander2; 06-19-2012 at 04:12 PM.

+ 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