How to Create a Data Entry Form in Excel

How to Create a Data Entry Form in Excel

Excel Macro Mastery

2 года назад

266,230 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Excel Macro Mastery
Excel Macro Mastery - 17.08.2021 16:19

Hope you enjoy the video. Let me know if you use or plan to use UserForms in the comments below

Ответить
Silverfoxadventuresofsweden
Silverfoxadventuresofsweden - 17.09.2023 17:53

Microsoft is blocking the downloaded file

Ответить
Soltec PMs
Soltec PMs - 09.09.2023 17:44

Hi, I am trying to put a button directly onto my spreadsheet that will open the automatic form to enter data into my table.

Ответить
The Big Show
The Big Show - 29.08.2023 05:42

Perfect explanation 👌 Thanks ❤

Ответить
BiotechWarriors
BiotechWarriors - 19.08.2023 09:58

great tutorial.

Ответить
Andi Artsam
Andi Artsam - 16.08.2023 10:30

Is it necessary using "Call" whenever we want to call the public sub? What if we don't use "Call" so just directly the name of public sub?

Ответить
JP le Roux
JP le Roux - 11.08.2023 13:18

Awesome video, I have one error where you add the list of dropdown items in the cb. When I insert the shLookup and run, it comes out woith an error that states "Variable not defined". Can someone please help me:
Public Function GetCountries() As Variant
GetCountries = shLookup.ListObjects("tbCountry").DataBodyRange.Value
End Function

Public Function GetDepartments() As Variant
GetDepartments = shLookup.ListObjects("tbDepartment").DataBodyRange.Value
End Function

Ответить
Rico Anugrah
Rico Anugrah - 04.08.2023 05:20

do you have a code to add a search button

Ответить
Syl Kas
Syl Kas - 01.08.2023 14:01

Great, that his mouse goes out of the view, and suddenly there is a list box. viola\.

Ответить
Δημήτριος Γιαλούρης
Δημήτριος Γιαλούρης - 26.07.2023 18:08

Great video (and site). Very professional code. Thanks for sharing. Some remarks:

Loved the way a userform can be duplicated.

If user is allowed to select any cell in the “Staff” worksheet, to indicate the record to be updated or deleted, “New”, “Edit” and “Delete” buttons could be put directly in this worksheet, with the same functionalities. Thus, “formStaffList” could be skipped. (Albeit, in this case, this video, too.)

There are tutorials that discourage the usage of RowSource property, in favor of the List one. Probably because of Excel bug(s).(?)

There is a bug in “CreateNewID” method. If the last record is deleted, and a new one is added afterwards, the new one takes the Id of the deleted one. Instead, perhaps the last used Id could be stored in a cell of the workbook, and its value be incremented by one, whenever a new record is created.

Again, thanks for your services.

Ответить
Jeremy Troester
Jeremy Troester - 21.07.2023 06:50

Your video is very informative and makes me want to learn more. However, I need instructions about one or two steps below this one to understand the VBA process.

Ответить
Johnny C.S.
Johnny C.S. - 07.07.2023 08:32

Its good and looks nice but I find it easier to just use the spreadsheet for this specific example.

Ответить
John Blades
John Blades - 28.06.2023 20:56

Great tutorial. Unfortunately, I'm only part way through it as I'm having some issues. I'm getting this weird error when I try to close the userforms in vba and when I try to save my macro-enabled spreadsheet. The error is "System error &H8000FFF (-2147418113). Catastrophic failure" Could this be the result of not having the appropriate references loaded in vba?

Ответить
megaman x1
megaman x1 - 24.06.2023 01:00

I can't believe i haven't used iif function in my coffee before. I never even thought of it.

Ответить
lorribetha
lorribetha - 23.06.2023 18:05

I needed to create a form for Stock Management for my colleague, and this video was perfect talking me through my first VBA project. I will say I tripped several times with not being able to download the source code (Company blocked), however extremely happy with how it's turned out! Will be watching more of your videos!

Ответить
Sparkey Nova
Sparkey Nova - 22.06.2023 04:51

the use of shStaff confused me. I used ActiveSheet in its place and made it to the next step. I must not have had shStaff set up, no clue just beginning

Ответить
Will Johnson
Will Johnson - 09.06.2023 03:31

You are wonderful. This is straightforward and finessful coding and explanations. Thank you.

Ответить
Milind Sulakhi
Milind Sulakhi - 08.06.2023 12:17

Hi, Thanks for this detailed file. If i want to make "Edit" on entering a "record number" , how to do that ?

Ответить
Robert V
Robert V - 06.06.2023 05:12

Loved the video. Is it possible to create the form using listview and still have the ability to edit the entries? I like the grid lines of list view and hoping to incorporate it.

Ответить
James Cherehani
James Cherehani - 31.05.2023 21:29

This is excellent. I need your help. How can I make data Base form that can allow me to enter marks of different subjects, and find position average, total,and prepare parents report cards automatic?

Ответить
Sten Stokroos
Sten Stokroos - 30.05.2023 19:58

Is there any way to add a filter/search option to the listbox

Ответить
Alea Iacta Est
Alea Iacta Est - 02.05.2023 07:12

I want to achieve something I think a bit more complex. But this is a good starting point. I’m new to this

Ответить
Alea Iacta Est
Alea Iacta Est - 02.05.2023 07:10

Thanks a lot it looks very easy and nice

Ответить
Sönmez Mühendislik Doğalgaz
Sönmez Mühendislik Doğalgaz - 17.04.2023 18:54

hi and thanks for your amazing vids. I have a problem soon..I cannot use the excel file with userform that I created while using window 10 after purchasing a macbook. My first question is, is there no userform support on macbook computers? My second question is, is there a way to convert the file I created with win10 to macbook? Thanks

Ответить
Ian Carr
Ian Carr - 16.04.2023 21:15

Excellent, thanks!

Ответить
Leslie King
Leslie King - 13.04.2023 15:44

My database that is used to populate the user forms have a number of cells with calculations in them - so they don't need to be filled in (or even seen) by the user. Do these cells (columns) have to appear on the user form (for add, edit) just because they are columns in the underlying database (i.e. "shStaff")?

Ответить
Nam Ha
Nam Ha - 12.04.2023 15:28

thanks

Ответить
Florante Torres
Florante Torres - 12.04.2023 11:57

If you have user form student register but can I upload excel file with the same information needed to enter in the user form box and when I upload it data of excel will automatically added to the list register student

Ответить
colin huntley
colin huntley - 06.04.2023 10:51

......

Ответить
colin huntley
colin huntley - 06.04.2023 10:50

.......

Ответить
colin huntley
colin huntley - 06.04.2023 10:50

hallo paul, many thanks for the tuorial! i cannot get the download link to work! any ideas? regards, colin

Ответить
Chad Landry
Chad Landry - 28.03.2023 23:05

Great tutorial. I do have a couple questions/issues. The first is what is a shlookup? I get an error on that in excel 2021.
GetCountries = shLookup.ListObjexts("tablename").DataBodyRange.Value

also me.options does not bring anything up and errors out as well. More than likely EndUser error. But if you have time to comment that would be great.

Ответить
Tammy Tam
Tammy Tam - 20.03.2023 05:52

Paul is the BEST 👌 teacher of VBA. Thank you so much for your hard work & source code for us. Liked & definately Subscribed . Love ❤the tutorial. Looking forwarrd to more.👏

Ответить
William D'Arrigo
William D'Arrigo - 18.03.2023 15:28

For anyone who's trying to follow and getting the object required error. You have to make tables for each combo box in Lookup sheet. Then go to Formulas -> Name Manager to edit the table names to "tb{table_name}"

Ответить
Fabien 18
Fabien 18 - 18.03.2023 13:45

Hi thx for all. Any Idear to change Height of the first Row (header) ?

Ответить
Fatih Karabulut
Fatih Karabulut - 15.03.2023 23:06

Sequence numbers are not updated when we delete a record

Ответить
Ravnulv Thordnspyd
Ravnulv Thordnspyd - 11.03.2023 23:10

Is there a way to lock the "header information" if all the data items get deleted.

Ответить
Raymond Susing
Raymond Susing - 08.03.2023 18:51

Hi I'm work on a project and I learned a lot from your tutorial. As par of on going project, can you teach us how to create a search using a combo box as a criterion and when you enter the data that you want to search in the text box search the results will display in the list box and text box

Ответить
Rodrigo Bittencourt
Rodrigo Bittencourt - 19.02.2023 03:02

Great job Mate!

Working perfectly!

Ответить
Alexis Gonzalez
Alexis Gonzalez - 12.02.2023 20:33

gracias maestro!

Ответить
Dan Foltz
Dan Foltz - 08.02.2023 00:19

Thanks for sharing. I have wanted to do this in previous uses but never got it all figured out. You make it look so easy. I will certainly give it a shot.

Ответить
frank van Diepenbos
frank van Diepenbos - 30.01.2023 13:19

in minute 15, exporting the form: I get system error &H8000FFFF

Ответить
Lucas Mota
Lucas Mota - 26.01.2023 05:22

Amazing!!! Thank you.

Ответить
Eric Hammond
Eric Hammond - 26.01.2023 03:08

Awesome tutorial, have watched it several times. Thanks. Can you update the link to the download workbook?

Ответить
Mark Cox
Mark Cox - 23.01.2023 05:58

loved the video, really helped me get my head around a couple of things - one thing - I cant download the source code ????? can you help please......

Ответить
Hadi
Hadi - 08.01.2023 12:54

I thought I knew everything in vba ... just discovered the accelerator property 😂 so used to the VB "&" placed in the caption and was wondering why it wasn't implemented in vba lol... Thanks Paul, I love your videos👍

Ответить
Scot Olivera
Scot Olivera - 01.01.2023 10:32

No Data entry form for HR without joining or leaving date , i know datepicker will add a bit complexity to the project but it would be nice if it was there

Ответить
J F
J F - 29.12.2022 20:09

This was a good tutorial. I did get tripped up a few times following along but the included worksheet showed me the deviation so I thank you for that.

To take this further, refreshing the list in real time for adds and removes would have been cool. I could see how another list on the modfiy and edit page would give that update view real time... "people you just added" list. and when close that would be present on the initial list.

personally i would like to see role and group selection UI with the forms. thats where i am hoping to build some functionality with forms. thanks for the video

Ответить
Mark Plemel
Mark Plemel - 10.12.2022 01:10

This was a really helpful video and I used it as a guide to make a data entry form for tracking failure events at wind farms. I would like to modify it to include some data validation such as making sure certain text boxes only allow dates or integers. It would be great to have a similar walkthrough of that.

Ответить