+ Reply to Thread
Results 1 to 9 of 9

Save data by date

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    14

    Save data by date

    Hi guys

    Im newbie here and this is my first post.

    At the moment i work answering the phone for a house loaning fund. I would love to keep track of how many calls i answer each day. So i created a simple counter using a spin button (if i press up + 1 and if i press down -1) Pretty simple. But what i would like to do is at the end of each day is to be able to save it by date (the number of calls) maybe to another sheet within the workbook without having to manually do so.

    Hope someone understands this

    Thx in advance,
    Vignir
    Last edited by vargur1; 08-27-2012 at 11:25 AM. Reason: spelling

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Save data by date

    Hello there,

    Insert an Active X command button onto your worksheet.
    Right click on the command button and select the View Code option.

    In between the Sub CommandButton1_click() and End Sub copy and paste the below code:

    Please Login or Register  to view this content.
    Anything that appears in green is a comment that is meant to help you understand. Please read through the code as it tells you where you need to change ranges to help to code fit your workbook.

    Exit out of Visual Basic and then click the CommandButton.

    Let me know if this helps!

    Thanks!

  3. #3
    Registered User
    Join Date
    08-27-2012
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Save data by date

    Thanks for the quick reply. I will try this tonight, looks pretty straight forward. Will let u know how goes

    Thanks!
    Last edited by vargur1; 08-27-2012 at 11:53 AM. Reason: spelling

  4. #4
    Registered User
    Join Date
    08-27-2012
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Save data by date

    Hi

    Im not 100% on how to do this. I attached a dummy version of this, could u help me? That way i can see what you did and learn from it

    Thanks!
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Save data by date

    Attached is your worksheet, updated to include the code and command button.

    Thanks!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-27-2012
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Save data by date

    This is exactly what i had in mind, BRILLIANT

    Thanks for your help, if i could i would hug you!

    Thanks!

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Save data by date

    @ vargur1

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Save data by date

    No problem, on here you can just tap the star to add to my reputation it's the equivalent of hugging

  9. #9
    Registered User
    Join Date
    08-27-2012
    Location
    Iceland
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Save data by date

    @ Cutter

    I will make sure next time to mark it solved.

    @ rvasquez

    I gave u a star

+ 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