+ Reply to Thread
Results 1 to 6 of 6

Easy data entry into Table

  1. #1
    Registered User
    Join Date
    01-10-2024
    Location
    Melbourne Australia
    MS-Off Ver
    365 Version 2311
    Posts
    6

    Easy data entry into Table

    Hi,

    I have tables that i use to track where jobs are at.
    When have to enter a new job i have to scroll to the next empty line to do so.
    The table has a auto sort vba to order column a alphabetically ascending, so all empty rows are at the bottom.

    Is there a way i can either
    a) create a fixed cell at the top of the table for data entry, so when type in the "Cameron ID" and press enter/tab it will enter that into the next empty row in column a. then return the fixed cell to be empty for when have to add another job.
    * if this is possible, would it also be able to ender the new row into the relevant "Cost Centre's" sheet table (data taken from table1 on DATA sheet) under column "Cost Centre". ie unit c1234 will always be entered into sheet "T-54 (NSW)" table even if entered on another sheet.

    b) always have one empty row under row 2 for data entry, and after i enter a "Cameron ID" in column a the it can be free to be sorted by the vba code.

    I don't want to use the "form" function that can be added to the shortcut bar, shows too many options.

    I have attached a stripped out copy of the document attached with sensitive data removed for help.

    Thank you, N.
    Attached Files Attached Files

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

    Re: Easy data entry into Table

    As you are already using macros/VBA why not use a bespoke UserForm (note this is not the in-built form) but a facility within the VBA editor - far more logical than entering manually to the sheet.
    Torachan,

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

  3. #3
    Registered User
    Join Date
    01-10-2024
    Location
    Melbourne Australia
    MS-Off Ver
    365 Version 2311
    Posts
    6

    Re: Easy data entry into Table

    Hi Torachan,
    What i know i has been self taught thru google and ai but am finding it hard to integrate a solution. I thought a vba code would be the way but cant find a solution. Cheers,

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

    Re: Easy data entry into Table

    Look back on this site in the next couple of days I will put something together that will hopefully be a guide.

  5. #5
    Registered User
    Join Date
    01-10-2024
    Location
    Melbourne Australia
    MS-Off Ver
    365 Version 2311
    Posts
    6

    Re: Easy data entry into Table

    Thank you, I appreciate your help!

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

    Re: Easy data entry into Table

    The attached file is just a basic framework of a userform to demonstrate the handling of your data to/from the sheet.
    The sheet is using a 'structured table' to contain the data (there are no formula or data validation on the sheet - these would be taken care of as the code is developed).
    Just a few basic things to bear in mind - do not extend tables with a multitude of blank rows - 'structured tables' are intended to be dynamic (i.e.) they will expand/contract automatically on the addition/deletion of data.
    Do not place tables under each other or adjacent each other (without knowing future expansion) as they will amalgamate if the separation is closed as the table expands (causing frustrating troubleshooting).
    I have only put one selection combobox in place at position 8 (I could not relate some of the others to your intended use)(these replace the data validations of your original sheet).
    To work with minimal code I leave controls (labels,textboxes etc.,) with their default names - this allows then the use of of a basic loop to iterate through them instead of individually naming all 25 (saves acres of code on a big app.)
    You will see a textbox overlaying each combobox this is held in focus by the ZOrder - assists the above looping and use of the form for all actions - see first combobox is also a means of search for data to update or delete.
    Lastly to add additional data first press 'CLEAR' - this ensures form is blank and activate 'ADD' button - enter your data then press 'ADD' this should transfer data to the table.
    Post back on this site if you need further help.
    Attached Files Attached Files

+ 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] Design worksheet for data entry to enable easy search
    By rpaonline7 in forum Excel General
    Replies: 2
    Last Post: 03-26-2021, 09:25 AM
  2. Replies: 2
    Last Post: 03-28-2017, 03:38 PM
  3. Replies: 9
    Last Post: 08-09-2016, 01:19 PM
  4. [SOLVED] Code to move data from an entry table to a historical table by date.
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 11:04 AM
  5. Easy military time entry in userforms
    By gmacdonald in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-06-2013, 08:34 AM
  6. [SOLVED] Purchase entry (Invoices) in Excel, quick and easy. Does anybody k
    By Javier0707 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2005, 07:05 PM
  7. Replies: 2
    Last Post: 05-28-2005, 12:05 PM

Tags for this Thread

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