+ Reply to Thread
Results 1 to 4 of 4

Deleting cells in multiple worksheets at the same time

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Deleting cells in multiple worksheets at the same time

    I want to do something which surely can't be that difficult.
    I have a file with two worksheets: table and knockout
    I use it to score a computer tournament i play.
    At the end of the tournament I want to clear certain cells from both worksheets.
    in the worksheet called "table" i want to clear cells C15:c18, j15:j17, q15:q18, c100:t105
    in the worksheet called "knockout" i want to clear cells d2:g6
    That's all.
    How do i write a macro that will delete those ranges of cells from both sheets at the same time? ideally, i'll then put a button somewhere. pressing the button will clear those cells.
    i've spent some time with trialling and erroring, but mostly erroring, to be honest.
    thanks people
    ilovejazz

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi jazz.

    The easiest way for you to learn this is by recording a macro. Tools > Macro > Record, then perform your operations, then click the Stop button. Of course, the code written during the recording is not the most efficient, but it will work. After cleaning it up, it could be simplified to something like:

    Please Login or Register  to view this content.
    HTH

    Jason

  3. #3
    Registered User
    Join Date
    01-06-2009
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    2

    thanks

    good one mate. cheers.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If 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
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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