+ Reply to Thread
Results 1 to 2 of 2

Help me somebody !!!!!

  1. #1
    Registered User
    Join Date
    01-23-2005
    Posts
    9

    Question Help me somebody !!!!!

    I have created an employee timesheet that totals the hours for a given week, anyways I want to insert a button that clears the totals (reverts the cells back to zero) by assigning a macro to the button. Can anybody help? I'm fustrated and strapped on time. Thanks.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Create your botton and assign this macro to it. Adjust the range as needed.


    Sub clearcells()
    '
    ' clearcells Macro

    '
    Range("C11:G11,C13:G13,C15:G15").Select
    Range("C15").Activate
    Selection.ClearContents
    Range("A1").Select
    End Sub

    HTH
    Bruce
    The older I get, the better I used to be.
    USA

+ 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