+ Reply to Thread
Results 1 to 8 of 8

VBA codes to fully automate Data Entry Form

  1. #1
    Registered User
    Join Date
    12-11-2023
    Location
    los altos, ca
    MS-Off Ver
    2016
    Posts
    38

    VBA codes to fully automate Data Entry Form

    Hi VBA Experts

    Hope you have a good day.
    I need your intelligence please.

    Attached is The Automated Data Entry Program that has 2 sheets with buttons: Clear, Save, Add Picture, Search.
    All the black Fonts are Headings, Labels & Red Fonts are data (either input as new or extracted from backend)
    Form (as Frontend) -
    Data (as Backend) -

    My wish is

    1-to turn this Form automated which allows users to either retrieve data from backend (Data sheet) or input data into (Form sheet)
    2-cells for data entry must allow users to enter multi-lines like the notes format
    3-all the data on Form must be printed out on Legal size

    I need the VBA for these buttons please.

    Thank you so much for your time and kind help. Greatly appreciated!
    Attached Files Attached Files
    Last edited by jojo4santa; 12-13-2023 at 07:03 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,757

    Re: VBA for Data Entry Form

    Welcome to the Forum jojo4santa !

    Thanks for attaching a sample file and describing it in your post.

    What is your question?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-11-2023
    Location
    los altos, ca
    MS-Off Ver
    2016
    Posts
    38

    Re: VBA codes to fully automate Data Entry Form

    thanks 6StringJazzer for your quick help. I edited the post.

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: VBA codes to fully automate Data Entry Form

    Rather than the use of a form on the sheet make use of a UserForm and 'structured tables' the combination of the two enables coding to be far more efficient and compact.
    As an introduction/explanation - on the form you will see the textboxes and labels are left with their 'default names' - with the 'labels' on initialisation of the form the 'table column headers' are read and the 'labels' take these names - so any change of header will result in the label changing - you will no doubt want a better layout so always keep the label and associated textbox together.
    A similar approach is taken with the textboxes - rather than individually coding textbox to sheet cell relationship (taking 50+lines of code) this is done at each control with a three line loop.
    To add a new client first press 'CLEAR' to ensure a clean form and activate the 'ADD' button - enter your data and press 'ADD' to transfer to sheet - the rest should be intuitive.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  5. #5
    Registered User
    Join Date
    12-11-2023
    Location
    los altos, ca
    MS-Off Ver
    2016
    Posts
    38

    Re: VBA codes to fully automate Data Entry Form

    Thank you so much Torachan for your super quick help.
    I will edit the post so that it is clearer what I need. As the Form has to extract data from different servers, it is quite struggling. Very time consuming.

  6. #6
    Registered User
    Join Date
    12-11-2023
    Location
    los altos, ca
    MS-Off Ver
    2016
    Posts
    38

    Re: VBA codes to fully automate Data Entry Form

    Hi Torachan,
    Hope you have a better day. I like your idea.
    However, we need to print out this form for the specific task (client photo & all details about client).
    I just reposted with a new look.
    Data on this Form will be partly collected from existing database and new data entry to complete the info.
    This Form will be the snapshot of all details about client & its whereabout.
    Some data entry cells will have multiple lines Ex: cell D17 might be entered as notes format with
    [*]line1[*]line2[*]line3[/LIST]
    Thank you so much for your quick help. Greatly appreciated !

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: VBA codes to fully automate Data Entry Form

    I have looked at your edit - sorry I will pass on this challenge - from experience I do not develop apps that involve merged cells and VBA.
    There are a multitude of reasons most are well documented on the web without me repeating them.

  8. #8
    Registered User
    Join Date
    12-11-2023
    Location
    los altos, ca
    MS-Off Ver
    2016
    Posts
    38

    Re: VBA codes to fully automate Data Entry Form

    Hi Torachan

    Thank you so much for your explannation. I just finished the project. Smile.
    Merry Xmas!

+ 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. Data Entry Form
    By Jompje in forum Excel General
    Replies: 3
    Last Post: 09-14-2017, 11:12 AM
  2. Form Data Entry
    By ddprince in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2014, 06:08 PM
  3. Replies: 3
    Last Post: 09-24-2013, 11:01 AM
  4. Replies: 2
    Last Post: 06-07-2013, 09:08 AM
  5. Fix for Data Entry Form
    By Jennster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2012, 09:18 AM
  6. [SOLVED] Data Entry form
    By P.Jaimal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2005, 01:35 PM
  7. Data Entry Form (similar to default Excel Data>Form)
    By tonydm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-11-2005, 02:59 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