+ Reply to Thread
Results 1 to 6 of 6

Button to clear sheet and automatic clear rows

  1. #1
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Button to clear sheet and automatic clear rows

    Hello

    I was wondering if anyone could help please.

    I have a sheet that i wish to clear the contents what i want it to do is just clear the whole sheet when i press the button located on another page.

    Could anybody help at all please?


    My other problem is, i am copying data over from another source and i am copying by ctrl a and crtl c, this is for simplicity, but it copies a lot of data that i dont want. So what i would like to know is the code for deleting a numbers of rows and columns. i am not sure what rows and columns need to be deleted, but if i have the code, i could just input them at a later date.


    Any help would be really appreciated and if any more information is needed please ask

    Kind regards

    Joe
    Last edited by sandbach; 09-29-2010 at 02:07 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Button to clear sheet and automatic clear rows

    This will empty all cells on sheet 2
    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Button to clear sheet and automatic clear rows

    Thanks Roy that is perfect!!!


    can anyone help with deleting rows and columns?

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,442

    Re: Button to clear sheet and automatic clear rows

    Hi sandbach,

    If you record a macro and delete a row or column and then look at what has been recorded, you can answer your own question.

    I just did this with row 8 and it gave me this code:
    Please Login or Register  to view this content.
    Turn on your macro recorder and see what happens when you delete a column.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: Button to clear sheet and automatic clear rows

    If you aren't sure which colums or rows, select them then

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-23-2009
    Location
    liverpool, england
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Button to clear sheet and automatic clear rows

    thanks guys thats fantastic!

+ 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