Solved

Excel pop up form to enter data

Posted on 2014-09-29
6
280 Views
Last Modified: 2014-10-02
I would like to create a data entry form to append or update a table.  See attached worksheet.  The user would click a button to pull up a form and enter the actual hours worked each week for each task.  When done the form would close and append or update the data in the table which feeds a pivot table.  Form should populate with task codes and descriptions.

Thanks in advance
0
Comment
Question by:acdecal
  • 4
  • 2
6 Comments
 

Author Comment

by:acdecal
ID: 40350966
Data table is on sheet 2.  This is just an example of a larger and more complex workbook.
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40351166
Please attach an example workbook.  :-)
0
 

Author Comment

by:acdecal
ID: 40351902
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:acdecal
ID: 40353190
Sorry I forgot to attach workbook.  Any help on this please?
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40356413
After considering the functionality - and code maintenance required - I'm offering up another possible solution.

Instead of a pop-up form, there is a dedicated "Input" worksheet.  It has a data validated drop down for the week ending date (populated via a lookup table on "Lookup") for 2014.  There is a table with the Task Codes and Descriptions and cells for entering hours (limited to 80).  The entire sheet is protected (no password here) so that users can only select a data or enter hours.

There are two buttons.  One will clear the sheet.  The other will append the data table (on the "Data" sheet) with any hours listed here, so long as a date is selected.  The macro will then remove any duplicates in the data table (if any) and refresh the PivotTable.

The advantage of this setup vs. a pop-up form is that that input table is easily expandible and the code is already written to accept any size of the table.  A user form would require additional coding to allow for new tasks, descriptions, and hour input.

Example file attached.

Regards,
-Glenn
EE-Example1b.xlsm
0
 

Author Comment

by:acdecal
ID: 40357588
OK great!  I'll try to adapt this to my workbook.
Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now