+ Reply to Thread
Results 1 to 3 of 3

Data Entry and Recall

  1. #1
    Registered User
    Join Date
    01-29-2019
    Location
    Victoria, BC
    MS-Off Ver
    2010
    Posts
    4

    Question Data Entry and Recall

    Hey Guys,

    I am really hoping you can help me out. I am fairly new to the VBA aspect of excel and would love to learn more.

    I am trying to streamline out Employee Time Sheets. I would like to be able to enter each employees hours on the master sheet and have newly entered data save to the corresponding employee's worksheet.

    Example:
    If I select "Smith, Tom" from the drop-down on the "Calendar Overview", this sheet will recall the data from "Smith, Tom" hidden worksheet. From there I can enter in his new hours on the corresponding days on the "Calendar Overview" worksheet. Then the newly entered hours will then save to "Smith, Tom" worksheet. Essentially this example would happen for all employees listed in the drop-down on the "Calendar Overview" sheet.

    Is this even possible? I have about 30 employees that would have hidden sheets that the "Calendar Overview" worksheet would need to transfer data to.

    I have attached a copy of the excel file on which I would love this to work.
    Attached Files Attached Files
    Last edited by VBANewbieSBM; 02-11-2019 at 01:07 PM.

  2. #2
    Forum Contributor
    Join Date
    08-22-2017
    Location
    USA
    MS-Off Ver
    2016 WINDOWS and MAC
    Posts
    294

    Re: Data Entry and Recall

    Hello,

    Please see attached workbook which demonstrates how you achieve this read/write functionality with VBA.

    Here are the constraints with this code:

    1.) Calendar sheet must not change its name.
    2.) Location of criteria name must not change ("C2")
    3.) The range i chose to read/write is C5:R58 - adjust as needed in every instance you see this range.
    4.) You can add as many employees as you wish. However, the sheet name must be precisely the same as what you have listed in the criteria field. Otherwise, this will not work.
    5.) I experienced strange behavior with this workbook - the change event wouldn't fire on multiple accounts, forcing me to restart the workbook. More than likely a fault with my system, but if you experience absolutely 0 code execution from the workbook, there is an issue.

    Items 1-4 can, of course, be modified to meet your needs.

    Regards,
    Attached Files Attached Files
    Last edited by ironfelix717; 02-09-2019 at 02:33 AM.

  3. #3
    Registered User
    Join Date
    01-29-2019
    Location
    Victoria, BC
    MS-Off Ver
    2010
    Posts
    4

    Re: Data Entry and Recall

    Quote Originally Posted by ironfelix717 View Post
    Hello,

    Please see attached workbook which demonstrates how you achieve this read/write functionality with VBA.

    Here are the constraints with this code:

    1.) Calendar sheet must not change its name.
    2.) Location of criteria name must not change ("C2")
    3.) The range i chose to read/write is C5:R58 - adjust as needed in every instance you see this range.
    4.) You can add as many employees as you wish. However, the sheet name must be precisely the same as what you have listed in the criteria field. Otherwise, this will not work.
    5.) I experienced strange behavior with this workbook - the change event wouldn't fire on multiple accounts, forcing me to restart the workbook. More than likely a fault with my system, but if you experience absolutely 0 code execution from the workbook, there is an issue.

    Items 1-4 can, of course, be modified to meet your needs.

    Regards,
    Hey ironfelix717,

    Thank you so much for your assistance! It works fantastic.

+ 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] Recall the data as it is in the user form to edit and update
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2018, 02:15 PM
  2. [SOLVED] User entry or "upload" of images in userform for later recall.
    By IMM Tech in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-04-2018, 11:22 AM
  3. To recall the groups of Data
    By mido21 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2016, 01:30 AM
  4. Recall data input in specific order in excel
    By godfreyschuller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2016, 03:15 PM
  5. User form on initialize to recall last entry from Excel Sheet
    By maip.kewa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 07:16 PM
  6. recall data from sheet1 to sheet2,...
    By vitalion in forum Excel General
    Replies: 2
    Last Post: 10-04-2011, 07:26 AM
  7. Delete data in listboxes then recall the data without unloading userform
    By Sal1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-11-2011, 06:37 PM

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