+ Reply to Thread
Results 1 to 5 of 5

Production counter with history database

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Production counter with history database

    Hello.

    We are trying to create a simple production counter which should count number of pcs produced and also measure how well we perform according to plan.
    I need to create a History table that updates it self once a day at a specific time.
    I have attached a file that explains what the macro should update.

    Every morning at 05:41, add a new row to the history table and add date, planned parts, produces parts, and calculate backlog status.

    More details in the attached file.

    I really hope you can help me...

    /Anders
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Production counter with history database

    Try placing the following code in the workbook module:

    Please Login or Register  to view this content.
    And thiscode in a standard module

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Production counter with history database

    Hi.

    the code does its job but there are something strange happening. I have made it a little bit easier for the "Updatehistory" function so that the calculation are done on the sheet instead and it only copies and writes the value from one cell (K13).
    For some reason it writes the wrong value and it writes multiple rows.

    Any ideas? I have attached a newer version of the file.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Production counter with history database

    To fix writing the correct value, I included code to prevent Automatic calculation while it runs. I do not see any duplicate lines being produced.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Production counter with history database

    It seem to work better. We will work more with this and maybe I'll open the question again. for now I am very satisfied and kindly sends a big thanks!!

+ 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] Calculate monthly production needs based on aggregate production table
    By aroseb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2020, 12:29 PM
  2. Consolidated Production chart (Production vs wastage vs Changeovers)
    By Abrarpkbev in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-10-2019, 03:15 AM
  3. Database to record cell history
    By calum h in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-31-2017, 08:16 AM
  4. [SOLVED] Vba to increment counter each time a record is deleted or added to Database
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-16-2016, 03:58 AM
  5. Creating a database from daily production reports
    By FroukeWiersma in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2013, 05:43 AM
  6. Replies: 3
    Last Post: 06-04-2013, 02:56 AM
  7. Replies: 8
    Last Post: 01-20-2011, 02:40 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