+ Reply to Thread
Results 1 to 4 of 4

Need help for a macro to delete cells on multiple sheets

  1. #1
    Registered User
    Join Date
    03-24-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    74

    Question Need help for a macro to delete cells on multiple sheets

    I'm completely new to macro's and could use some newbie explanation on how to make a macro to delete cells in multiple sheets

    been looking on youtube to see if I could find a video with good explanation but haven't found one yet (maybe I'm searching wrong)

    I need to delete Sheet " Jan" C10-C40, D10-D40, E10-E40, G10-G40 and maybe more later
    Sheet "Feb" C10-C39, D10-D39, E10-E39, G10-G39
    Sheet "Mar" C10-C40, D10-D40, E10-E40, G10-G40

    and so on and so forth through the sheets but I'm hoping with this I can complete it myself
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Need help for a macro to delete cells on multiple sheets

    Try this on a copy, it's untested.

    Please Login or Register  to view this content.
    Last edited by skywriter; 01-19-2016 at 01:54 PM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help for a macro to delete cells on multiple sheets

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    03-24-2012
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    74

    Re: Need help for a macro to delete cells on multiple sheets

    Nice Alpha that seemed to do the trick ...

    Now if I need some more columns I just add them like you did with "C10:E40" ??

    Like I did here ..
    Please Login or Register  to view this content.
    Seemed to work but just not sure about these codes .. don't quite understand how to write them yet

+ 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] Macro to open multiple workbooks and delete specific sheets
    By JPSIMMON in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2015, 07:39 PM
  2. unable to delete entire row of empty cells in columns across multiple sheets.
    By CCLaMor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-09-2014, 02:03 PM
  3. Macro Button to Add/Delete rows across multiple sheets.
    By BluOx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2014, 03:32 PM
  4. [SOLVED] Delete Columns in Multiple Sheets with repeat macro
    By candie025 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2014, 03:01 AM
  5. Macro to insert/delete rows in multiple sheets
    By lorigies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2014, 11:15 AM
  6. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  7. Selection of cells in multiple sheets and delete the data in them
    By kolovel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2011, 06:17 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