Allow data Entry into Excel Worksheet Via User Form Only

  Рет қаралды 14,019

Dinesh Kumar Takyar

Dinesh Kumar Takyar

Күн бұрын

How to Allow data Entry into an Excel Worksheet Via User-Form or Macro Only.
Here's the complete VBA code:
Option Explicit
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdTransfer_Click()
Dim erow As Long
erow = Sheet1.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
Cells(erow, 1) = txtCustomerName
Cells(erow, 2) = txtMobile
End Sub
Private Sub Workbook_Open()
ActiveWorkbook.Sheets("Sheet1").Protect Password:="macr0@entrY", userinterfaceonly:=True
UserForm1.Show
End Sub
Private Sub cmdDisplayUserForm_Click()
UserForm1.Show
End Sub
Further Reading: www.exceltrain...

Пікірлер: 55
@konsamprincesingh7763
@konsamprincesingh7763 7 ай бұрын
This was really a wonderful tutorial. I am not an expert on excel and VBA. But as a finance officer i keep making excel based VBA userforms and other related data management system for my office which makes my work more efficient and easier to maintain. But the issue was my data are always open for anyone to manipulate or make wrong entry by me by mistake. So looking for a way to lock. Thank you so much you made my day. I am going to subscribe now.
@Jojosmith342
@Jojosmith342 Жыл бұрын
Dinesh is the GREATEST teacher of VBA. Thank you so much for your hard work and the valuable lessons. Liked & definately subscribed ! Looking forward to more tutorials
@AFRICANENERGY-p2k
@AFRICANENERGY-p2k Жыл бұрын
thank you sir i got what i was searching all the time
@ramanathwal5767
@ramanathwal5767 3 жыл бұрын
I learned so much from your video. It was exactly what I needed. Thank You!
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Glad it was helpful!
@barderians
@barderians 2 жыл бұрын
Thank you Dr. Am confident in you more.
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
All the best
@Mark_Lacey
@Mark_Lacey 3 жыл бұрын
Great video, exactly what I was looking for. Thank you Dinesh.
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
Glad it was helpful! Please share with your friends too.
@tomkochka2058
@tomkochka2058 2 жыл бұрын
This was excellent. Exactly what I was looking for. Thank you!
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Glad it was helpful!
@Victor-ol1lo
@Victor-ol1lo 4 жыл бұрын
Great video Dinesh ! Thumbs Up !
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Please share with your buddies too.
@javedahmed8343
@javedahmed8343 2 жыл бұрын
Nice explanation
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Thanks for liking.
@hassantaha3116
@hassantaha3116 4 жыл бұрын
Yes sir you have alot of amazing videos. Appreciate your efforts
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Thanks. Please share with your buddies too.
@Rajan-kk8nl
@Rajan-kk8nl 3 жыл бұрын
Thank you very much sir...
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
So nice of you
@azhadshamim3122
@azhadshamim3122 2 жыл бұрын
Excellent very Excellent
@Exceltrainingvideos
@Exceltrainingvideos 2 жыл бұрын
Thank you so much 😀Please share my channel on Excel with your friends.
@azhadshamim3122
@azhadshamim3122 2 жыл бұрын
@@Exceltrainingvideos inshallah
@thomaslau5993
@thomaslau5993 4 жыл бұрын
Hi Dinesh I think your videos are amazing. Could you upload a video on how to capture username via userform for any editing or entry of records
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
The following VBA tutorial in Excel will help: www.exceltrainingvideos.com/advanced-user-form/ Or search www.exceltrainingvideos.com - there should be at least 20 videos on this topic.
@muychamnan9993
@muychamnan9993 4 жыл бұрын
Wow! It is amazing video. I love it.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Please share with your buddies too.
@azhadshamim3122
@azhadshamim3122 3 жыл бұрын
Hi sir Greetings from heart Thank you so much for this code which allow only the userform to entery Which is completely offline software Thank you so much
@Exceltrainingvideos
@Exceltrainingvideos 3 жыл бұрын
God bless! Please share my KZbin channel on Excel VBA with your friends.
@smug8567
@smug8567 4 жыл бұрын
The way to count text is: =COUNTA(C8:C98). So if you want to know how many names you got for instance in Columns C8 through C98 then you could have this at cell at the top and it woud give you the number of people, etc.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Of course, you can.
@dailytechwithsalman5153
@dailytechwithsalman5153 Жыл бұрын
thank u sooo much
@hassantaha3116
@hassantaha3116 4 жыл бұрын
Mr. Dinesh, Could you please make video for salaries comparing ( current & previous). This vedios will make my work easier. Sincerely,
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Can you describe the task in greater detail?
@hassantaha3116
@hassantaha3116 4 жыл бұрын
@@Exceltrainingvideos Yes sure, I have big two payroll tables (current month & previous month). May these tables have some of similar columns and other different. Example: Table A has columns of (names - basic salary - allowances - other deductions) Table B has columns of (names - basic salary - allowances - other deductions - penalties) I need to create a table of differences (exceptions) for every columns and what is the unique column. Sincerely,
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
This link will guide: www.exceltrainingvideos.com/compare-2-worksheets-to-create-report/
@shahrukhshahid4134
@shahrukhshahid4134 4 жыл бұрын
sir i enter data from column K2 to X2 and rows 2 to 201, now in column A1 i have reviewer name and B1 is current Date. now what i want do is whenever i put any data in K2, K3, K4, and so on my name and date get fetch automatically in column A and B respectively so sir can please help me with the code.....
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
This Excel VBA tutorial will help: www.exceltrainingvideos.com/search-multiple-values-in-worksheet-data/
@8-bitninja122
@8-bitninja122 4 жыл бұрын
What is the code for the userform when there are multiple sheets? I would like for it to work independently on each sheet.
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
The following VBA tutorials will help: www.exceltrainingvideos.com/transfer-data-from-user-form-to-multiple-worksheets-in-excel-workbook-using-vba/ www.exceltrainingvideos.com/transfer-specific-excel-worksheet-data-range-from-one-worksheet-to-another/ Fore more VBA ideas related to your Excel topic: www.exceltrainingvideos.com
@seemoonhabeeb1478
@seemoonhabeeb1478 2 жыл бұрын
Hello, frankly, I have a problem with security.. When I put a password for a worksheet in Excel, and when I share with another computer on the network, a problem occurs.. How can this problem be solved.. Thank you
@charlesthamba4514
@charlesthamba4514 4 жыл бұрын
Dear Sir There's any android app can read an excel vba file, even execute macro? If "yes", please I need. Thanks
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
No idea.
@charlesthamba4514
@charlesthamba4514 4 жыл бұрын
@@Exceltrainingvideos But in 2020 there should be one. 'Coz run macros on mobile should be very amazing and easy some tasks in management. Please if any information about this kind of app, share. Thanks for all your videos
@viankaleighpatron5950
@viankaleighpatron5950 4 жыл бұрын
Sir can you help me how to put hyperlink on textbox in userform?
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Why do you keep on repeating your queries? I already sent you the code!
@viankaleighpatron5950
@viankaleighpatron5950 4 жыл бұрын
@@Exceltrainingvideos sorry sir, maay i know sir where you send it?
@markpollock8586
@markpollock8586 2 жыл бұрын
Mines not going to the next line, it's just overwriting the same line with the new data
@madhuraj8169
@madhuraj8169 4 жыл бұрын
Hello sir, how can we find month first and last working days by using vba. please help me sir
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Yes. We can use the worksheet-function 'NetworkDays'.
@viankaleighpatron5950
@viankaleighpatron5950 4 жыл бұрын
It gives me compile error what must be the problem?
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
The problem is right in front of the computer. Check your code.
@gmcomputercenter5890
@gmcomputercenter5890 4 жыл бұрын
sir i want delete excel sheet on vba between sheet1:sheet10 delete only between sheets plese help me
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
You can run a looping process like so: Sub DeleteSheets() Dim s As Worksheet, t As String Dim i As Long For i = 10 To 1 Step -1 t = Sheets(i).Name If t = "Sheet1" Or t = "Sheet5" Then Application.DisplayAlerts = False Sheets(i).Delete Application.DisplayAlerts = True End If Next i End Sub
@shahrukhshahid4134
@shahrukhshahid4134 4 жыл бұрын
Sir please help
@Exceltrainingvideos
@Exceltrainingvideos 4 жыл бұрын
Check below.
How to Easily Create an Data Entry Form in Excel | No VBA
22:30
Jopa Excel
Рет қаралды 34 М.
EASILY Make an Automated Data Entry Form in Excel
14:52
Kenji Explains
Рет қаралды 705 М.
Зу-зу Күлпаш 2. Дартс
41:09
ASTANATV Movie
Рет қаралды 379 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 3,1 МЛН
Add Data to Specific Sheet from User Form - Advanced Excel VBA Userform
25:56
How to Create a Data Entry Form in Excel
34:30
Excel Macro Mastery
Рет қаралды 287 М.
Excel VBA Userform to Search and Update Data -  Excel VBA Userform Example
23:48
Using VBA to Enter Data into an Excel Table
14:08
MyExcelOnline.com
Рет қаралды 63 М.
Data Entry Application in Excel VBA - Part 1
12:03
PK: An Excel Expert
Рет қаралды 94 М.
Userform in Excel Data Add Search Update its simple
21:57
Daood Computer Centre
Рет қаралды 61 М.