+ Reply to Thread
Results 1 to 5 of 5

Macro for button to delete specific worksheet rows and columns

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Macro for button to delete specific worksheet rows and columns

    I'm looking for a macro on worksheet 1 to delete all contents from worksheet 2 in range A2:H10000

    Can someone get me a macro code to do this?
    Last edited by unclejemima; 02-22-2018 at 07:59 PM.

  2. #2
    Registered User
    Join Date
    02-22-2018
    Location
    Barcelona
    MS-Off Ver
    2007
    Posts
    18

    Re: Macro for button to delete specific worksheet rows and columns

    Please Login or Register  to view this content.
    if you want to eliminate the range and shift up the bottom ones to kill colors and borders too:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Macro for button to delete specific worksheet rows and columns

    I'd have to put a Sub Clear () and End Sub at the front/end of this right?

  4. #4
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Macro for button to delete specific worksheet rows and columns

    works like a charm now with the sub and end sub. (I'm a noob lol)

  5. #5
    Registered User
    Join Date
    02-22-2018
    Location
    Barcelona
    MS-Off Ver
    2007
    Posts
    18
    Quote Originally Posted by unclejemima View Post
    works like a charm now with the sub and end sub. (I'm a noob lol)
    Yes of course, I just posted the core of the sub....

    Well done figuring it out!

+ 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. Macro Button to Delete Entire Row if cells in two columns are empty in certain worksheet
    By Adriana Lee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2015, 07:49 PM
  2. Macro to copy data from specific columns and rows to new worksheet.....
    By dleckie in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 05-19-2014, 10:16 PM
  3. Macro to delete rows and columns
    By siroco79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2013, 07:37 AM
  4. [SOLVED] Help with macro or script to delete specific columns from worksheet
    By damjerm in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-23-2013, 01:40 PM
  5. Macro To Delete Duplicate Records (Rows), While Omiting Specific Columns
    By Orangeworker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2010, 12:37 PM
  6. VB Code to delete specific Columns of a specific worksheet
    By akh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-22-2010, 09:14 AM
  7. Replies: 5
    Last Post: 08-16-2006, 02:05 PM

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