+ Reply to Thread
Results 1 to 12 of 12

enter data onto report

  1. #1
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    enter data onto report

    Hi. I have a query and i am not sure if this can pulled off using vba so i'll post it for some advice. I have an attached file. On this file, on the first tab named, Data Entry, I have 6 fields to key in. They called named Site, Type (Between Electricity and water) Year, Month, consumption and rate. There is a 7th field called costs but i am using an auto sum to enter the data. Upon entering of the data. I require the data to be entered into the respective tabs by site first then search by type, then to find the range of the year and the month an then enter the data of consumption, rate and costs. I am not sure if this is doable and i have input a sample on the file or illustration purposes.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    How about
    Please Login or Register  to view this content.
    This needs to go in the "Data Entry" sheet module & will automatically enter the data onto the relevant sheet when you change the value of B18 on the Data entry sheet

  3. #3
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: enter data onto report

    Hi Fluff13. Thank you for the response with the code. I pasted it onto the module and it didnt seem to show the data on the respective tab. I have attached the report.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    I misunderstood your layout, try
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: enter data onto report

    Hi. I have pasted the revised code and have not managed to get the data over. Did i like did an incorrect step on my attachment?
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    That workbook still has the original code, rather than the revised code in post#4

  7. #7
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: enter data onto report

    Hi. Sry. I attached the correct worksheet and i got a debug error on this line.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    In your Sample 7 the previous workbook you typed in "Electricity", this time you have "Electric".
    To deal with that use
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: enter data onto report

    Hi Fluff13,

    I wan't able to get the code run after changing the line given. Should I paste this code on the module instead.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    The code works for me in your test file.

  11. #11
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Re: enter data onto report

    Hi Fluff13

    I got it. When i pressed enter on the cells without keying in any new data. It doesn't override the previous data to enter. Can i put in a trigger button to enter the data in.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: enter data onto report

    Do you mean that when the data is copied over you want the data on the "data entry" sheet to be removed?

+ 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. How to extratc data as weekly report and monthly report
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2014, 11:19 AM
  2. [SOLVED] Use VBA to Enter Value for Report Filter on Pivot Table
    By stubbsj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-11-2013, 09:28 AM
  3. Cells that report being different until F2 + Enter
    By GJL65 in forum Excel General
    Replies: 2
    Last Post: 11-06-2012, 11:29 PM
  4. Replies: 2
    Last Post: 06-29-2011, 04:35 PM
  5. Replies: 5
    Last Post: 12-06-2010, 04:39 PM
  6. Pull data from a matrix table into a report using 2 report conditions
    By bing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2008, 11:51 AM
  7. [SOLVED] Automate Excel report to place certain data into existing report?
    By Craig Harrison in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2006, 09:00 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