Тёмный

Run VBA Code on Protected Worksheet 

Dinesh Kumar Takyar
Подписаться 115 тыс.
Просмотров 90 тыс.
50% 1

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 125   
@gayedougherty1941
@gayedougherty1941 7 месяцев назад
I am not a person who has been educated in VBA (but intend to). My users wanted a multi-select dropdown list in the Excel form I provided, which I was able to accomplish, but I had to protect the worksheet...and it would not work!!!! Your good instruction has made it possible for me to give them what they wanted...and for me to finally get a good night's sleep! Thank you, Thank you.
@hollysmith929
@hollysmith929 3 года назад
Why can't everyone make it as straight forward as you!? Thank you!!
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Wow! Please share my RU-vid channel on Excel with your friends too.
@cstjero
@cstjero 6 лет назад
Worked nicely for me; I had an input sheet and and a separate output sheet. I kept the command buttons on the input sheet, inserted your code lines you showed, and got the output sheet protected. Many thanks Dinesh!
@jpmaina
@jpmaina 7 месяцев назад
Thank you Sir... This was the simpliest solution for me. I have zero knowledge in VBA and it worked like a charm first time I tried it unlike other solutions I had come across online.
@ronaldolima-qe1qf
@ronaldolima-qe1qf 6 лет назад
Some one please give this man a cookie!! You just helped me so much ch thank you!!!!!
@franckdonaldnikiema7579
@franckdonaldnikiema7579 3 года назад
Thank you Sir ! You just helped me too much ! Be blessed 🙏 🤝 From Burkina Faso 🇧🇫
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Glad to hear that. Please share with your friends too.
@tanushree2475
@tanushree2475 5 лет назад
Thankyou so much!! in any sheet, For Any command button vba code, just adding activesheet. Unprotect and activesheet.protect worked perfect!!
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
You are welcome. Please share with your mates also on social media.
@hrishikeshchaudhari2456
@hrishikeshchaudhari2456 5 лет назад
Hi Sirji This is the first time I've used your help and it has worked easily Thanks thank you very much
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
You are welcome. Share with your friends to spread the knowledge.
@pvnr5930
@pvnr5930 11 лет назад
Good morning Sir..your voice and method of explanation is owesome.
@tajsay
@tajsay 4 года назад
Thank you so much for this video Dinesh. This is exactly what I was looking for.
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
You are welcome. Please share with others and spread the knowledge.
@congeeW
@congeeW 3 года назад
Thank you so much, exactly what I was looking for. Very helpful!
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Great to hear!
@forex7769
@forex7769 2 года назад
So many good projects 👍
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
Thanks!
@bigdan8936
@bigdan8936 7 лет назад
This has been a huge help to me. Thank you for the video!!
@chahnakaria4519
@chahnakaria4519 5 лет назад
Thank you very much, it was great help!
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Please share with your friends and on social media. You can view more videos in Hindi and English at www.exceltrainingvideos.com/
@s.r5264
@s.r5264 3 года назад
Thank you so much.... Exactly i m looking for...,
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Most welcome 😊 Please share my Excel VBA RU-vid channel with your friends too. Thanks.
@sudhakargunjal4834
@sudhakargunjal4834 7 лет назад
Very Nice Guidance !! Great one!!!
@javedahmed8343
@javedahmed8343 2 года назад
Highly valuable inputs
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
Welcome!
@kath_erinelara
@kath_erinelara 4 года назад
Thank you very much! Your video was xtremely helpfull
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
You are welcome. Please share with your friends also.
@kosigadesiga3152
@kosigadesiga3152 5 лет назад
Worked like magic! Thanks a ton!
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
You are welcome. Share with your friends also on social media to spread the knowledge.
@dhirajp4677
@dhirajp4677 4 года назад
Thanks for the video sir..This thing was screwng me since 3 days
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Glad I could help. Please share my VBA tutorials with all your friends also on social media.
@Test_yourknowledge
@Test_yourknowledge 4 года назад
THANKS SIR REALLY USEFUL VIDEO
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
So nice of you! Please share this VBA tutorial in Excel with your friends also on social media like Facebook, etc.
@Test_yourknowledge
@Test_yourknowledge 4 года назад
@@Exceltrainingvideos ok sir
@adityabhat3108
@adityabhat3108 3 года назад
This is Amazing. Thank you so much..
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
Glad you like it!
@tanushree2475
@tanushree2475 5 лет назад
You can also add the code in any sheet to call any other sheet. Like writing code for sheet2 : "sheet1.unprotect" & "sheet1.protect".
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Can you share your code?
@mr.write1433
@mr.write1433 9 месяцев назад
It doesnt work if you have mumltiple sheets connected to your macro. Ive a lot of calls on some modules and unpro and pro is not reliable. Still looking something to work.
@AhesanAli
@AhesanAli 9 лет назад
Dear sir, Is there a way through VBA to prevent a particular cell from being changed by a user? this particular cell contains an auto increment invoice number (by vba function) and don't want users to change this to any other number.
@jameswilkinson8069
@jameswilkinson8069 7 лет назад
Excellent! Thank you.
@milkbattle
@milkbattle 7 лет назад
Hello Dinesh Thank you for sharing this.
@camilovinatea7747
@camilovinatea7747 4 года назад
This works sweet! thank you very much! :)
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Don't forget to share with your friends! Thanks.
@sushantbehera2485
@sushantbehera2485 2 года назад
sir can I get coding for getting values of multiple workbooks in a single work sheet/form. Beacuse i have data in different work books
@AmitGupta0985
@AmitGupta0985 4 года назад
Thankyou Sirji
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Welcome! Please share the VBA tutorials with your friends on social media.
@premchauhan9109
@premchauhan9109 4 года назад
Thank you Sir
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Welcome! Please share the Excel VBA tutorials with your friends.
@MrHorzel
@MrHorzel 6 лет назад
Why did you delete the button?
@Exceltrainingvideos
@Exceltrainingvideos 11 лет назад
What's your background?
@SRC30
@SRC30 7 лет назад
Hi Dinesh, I have not set any password for my sheet, i have just protected the sheet using Format cells option under Home tab in Office 2013, so how to write a script for that.
@josephmasaga8285
@josephmasaga8285 9 лет назад
nice work sir
@Joboy199204
@Joboy199204 9 лет назад
Good man, Dinesh!
@mosleyuddinsujon6898
@mosleyuddinsujon6898 Год назад
Thanks 👍
@HenriPadilla
@HenriPadilla 11 лет назад
What formula can I use: I have employee schedule: "Rosa" this person have a daily position where she will work. That work position is another sheet. / cell"A" Rosa / cell "B" 8am-5pm / cell "C" drop box asking what position she will be. Now by selection from de drop box X position. "Sheet 2" can take that information in put her name "Rosa" into the right position. Remember in sheet 2 there15 difference position I by clicking drop box dishwasher "Rosa" will be dishwater on sheet 2.
@SpaceWalkTraveller
@SpaceWalkTraveller 9 лет назад
Thanks, it worked.
@saifsudais
@saifsudais 3 года назад
Sir I have a problem coding in Excel VBA, which needs your guidance. When executing a macro with the command button in Excel, an error occurs while copying and pasting the formula via VB code. I want the VB code to run and the previous line formula to be pasted into the next line and the formula to be hidden and protected without any errors. While the rest of the cells remain unprotected for data entry. Can you guide me in this regard?
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
This link will guide: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-e0defRXXpdk.html
@joztik
@joztik 9 лет назад
Hello Dinesh,I have a VBA which runs automatically when the file is oppened. Now I need to password protect the whole file/workbook, which is easily done. Although the issue is that next time I open the protected file, I got a pop up window saying that my macros have been disabled and can not run them. Would you happen to have any workaround. So far I didnt find anything usable. Thank you, Joe
@rocky20717
@rocky20717 11 лет назад
Hello Sir, I watched your video.Great video & with good presentation. Sir,I want your advice.I always like to learn a new thing like Excel,word access,VBA. (Still Learning) But i dont know how to use this knowledge in professional life. I want to become Trainer but most of recruiter want experience trainer.Well,i need your precious advice that what are other options? Sorry to ask you question like this but i would be grateful to you if you help me.
@LoudFindings
@LoudFindings 5 лет назад
I want to do same process with sharad workbook. How to do?
@yogeshshelar9155
@yogeshshelar9155 4 года назад
Hello sir , I have a macro protected excel sheet, I want to see the formulas . How to remove the protection.
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Unprotect the worksheet using the password. This VBA tutorial will help: www.exceltrainingvideos.com/run-vba-code-macro-on-protected-sheet/ Or search www.exceltrainingvideos.com
@ankitchand3275
@ankitchand3275 6 лет назад
Sir, very good knowledge from I got this video.. but can I open password protected another workbook on my current sheet..
@keithandpilarschumaker5343
@keithandpilarschumaker5343 6 лет назад
Good evening sir, I created an attendance report sheet with a column header called "student status" with a drop down box that includes "Dropped", "Completed" and "Continuing". On another sheet is the following month's attendance report, that I have added a command button to add any continuing students from the prior month. This saves my end users the time and trouble of copying and pasting the data onto the other sheet. It works beautifully, however, I needed to protect some of the cells, to keep instructors (end users) from accidentally deleting any formulas, I find that the command button does not work while in protection mode. Is there a special code that I can use for to allow the button command to work even in protection mode so that my end users can still click on the button to paste the "continued" students?
@Exceltrainingvideos
@Exceltrainingvideos 6 лет назад
This link might help: www.exceltrainingvideos.com/allow-data-entry-specific-worksheet-cells-in-excel/ Or search www.exceltrainingvideos.com
@prathameshmhetre5597
@prathameshmhetre5597 6 лет назад
Hi sir, I am new to VBA, I tried searching a lot about if I could extract data from website which is supported on Mozilla Firefox into excel by macro . I could not find anything relevant. Also the specific site has a login. Please guide me in this. It will be really helpful. Thank you.
@paraskatoch271
@paraskatoch271 4 года назад
Hello Sir, I tried your code, it worked. However I am using pivot charts and in it after applying your code my slicers stopped functioning. Can you suggest a way in which the sheet remains protected after running the vba code but the slicer (time filter) associated with the pivot tablets keep on working
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Try again
@magdyibrahim126
@magdyibrahim126 9 лет назад
THANK YOU
@mahhongyew9524
@mahhongyew9524 4 года назад
Hi Sir, How should I protect the file after copy the data: Below are the scenarios, Where I have created a commandbutton to copy a data from sheet A to Sheet B; Hence I would like that after I clicking the commandbutton then the data is transfer to Sheet B then the data at Sheet B will lock for editing. Could Sir assist in this concern.?
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
The link to this VBA lesson will guide: www.exceltrainingvideos.com/tag/automatically-lock-worksheet-cells-after-data-entry-using-vba/
@mahhongyew9524
@mahhongyew9524 4 года назад
Hi Sir, I tried; Nonetheless, it shows compiled errors. Could Sir walk me through again?
@rocky20717
@rocky20717 11 лет назад
Sorry for late reply. I am Bcom Graduate and working now in BPO.
@TheFebinedwards
@TheFebinedwards 4 года назад
Thanks
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Welcome! Sharing is caring!
@venkatesh2285
@venkatesh2285 3 года назад
Sir, is there any way to protect my excel workbook reselling to other person by who got my excel workbook from me. Thank you in advance
@Exceltrainingvideos
@Exceltrainingvideos 3 года назад
You can purchase special software at a price.
@bhupendrabissa2883
@bhupendrabissa2883 4 года назад
Dear Sir, I want to apply protection to only one column and rest of the file must be editable.
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
These Excel learning tutorials will help: www.exceltrainingvideos.com/protect-worksheet-using-excel-vba/ www.exceltrainingvideos.com/allow-editing-in-protected-worksheet-with-vba/ www.exceltrainingvideos.com/automatically-password-protect-excel-worksheet-and-lock-cells-after-data-entry-using-vba/ www.exceltrainingvideos.com/protect-worksheet/ www.exceltrainingvideos.com/allow-data-entry-specific-worksheet-cells-in-excel/
@mathewsjacob5548
@mathewsjacob5548 9 лет назад
Dear Sir, I need to make 3 users for a single excel file like "admin", "manager", "data entry" each has different permission if so how I can do that. Admin full access, Manager allowed to make few calculation, data entry is allowed to enter the data.I was trying to make use of User forms. Will you be kind enough to give me some light on this area. Thanks in advance.
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
Mathews Jacob The links below may provide a direction:@protect-specific-excel-worksheets-using-vba/@protect-worksheet-using-excel-vba/@how-to-hide-excel-vba-code-using-password/@compare-userform-data-with-worksheet-data/
@risvananoushad3285
@risvananoushad3285 7 лет назад
Dear, is possible to entry the data by using user form in hided worksheet so no one can see the data ,only allow to enter the data
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Try it out and share it!
@souringoswami6047
@souringoswami6047 4 года назад
Your video is very useful..sir Is it possible to run macro in inactive protected sheet from active sheet..? Pls help..
@Exceltrainingvideos
@Exceltrainingvideos 4 года назад
Can you elaborate a bit more?
@souringoswami6047
@souringoswami6047 4 года назад
@@Exceltrainingvideos Sir.. Let suppose i am having 4 sheets and in first sheet i have user form and connected with rest three sheets through macro. Now i want to protect 2nd ,3rd,4th sheet. And also want can access these three sheet from user from , means from first sheet. Tq
@kandila8
@kandila8 6 лет назад
HI thank you so much for your videos . I just would like to ask. I am currently using Excel 2016 on my macbook but the toolbar and the userform features do​ not appear. Toolbar had been greyed and there is no userform open on the insert option. I have a macbook air late 2015 on Sierra. Please help. thank you.
@Exceltrainingvideos
@Exceltrainingvideos 6 лет назад
www.rondebruin.nl/
@kandila8
@kandila8 6 лет назад
I seems some features are not enabled when in Mac Office 2016 =0(
@restfun103
@restfun103 7 лет назад
it is great help. thank you. it's work with me but my sheet has another codes where has some dropdown list ,whenever I change the answer from the list that protection never work. What do I need to do sir?
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Search www.exceltrainingvideos.com and work harder!
@brianconroy6636
@brianconroy6636 8 лет назад
What if sheet 1 and sheet 2 are protect and you wanted to copy and paste special values from sheet 1 into sheet 2 . But both tabs were protect how would unprotect and protect both sheets in this scenario.
@Exceltrainingvideos
@Exceltrainingvideos 8 лет назад
Unprotect both the sheets as you unprotect one! Also, vice-versa.
@brianconroy6636
@brianconroy6636 8 лет назад
thank you I figured it out the coding is slightly different tho, Instead of Activesheet. you use Sheet1. This is where I was having difficulties hen using the code in this video.
@ManojThakur-fd7yv
@ManojThakur-fd7yv 6 лет назад
Hi Sir I am new to VBA, but is it possible to run vba code on the protected sheet data , when data is already linked to other protected sheet(s). for example in your video , if I assume that the data for sorting is linked to some other protected worksheet, then what would be the VBA code. THANKS...
@Exceltrainingvideos
@Exceltrainingvideos 6 лет назад
You'll have to 'unprotect' the sheets.
@ManojThakur-fd7yv
@ManojThakur-fd7yv 6 лет назад
Thanks sir Can u please share the vba code to unprotect any sheet in workbook from the active sheet
@Exceltrainingvideos
@Exceltrainingvideos 6 лет назад
www.familycomputerclub.com/run-macro-protected-sheet.html
@ManojThakur-fd7yv
@ManojThakur-fd7yv 6 лет назад
Thanks for your guidance.... 🙏
@casper3842
@casper3842 5 лет назад
Where is the button?
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
This link will help: www.exceltrainingvideos.com/how-to-assign-recorded-macro-to-command-button-in-excel/
@flowrittarose
@flowrittarose 7 лет назад
hi Mr Dinesh first i want to thank u for the video i was searching for , i already used it on macro buttons , but it didn't work on combobox made by developer and macro , so i need a code to make vba combobox work with a protect worksheet . and thank you again.
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
What VBA code have you written?
@flowrittarose
@flowrittarose 7 лет назад
this is the code Private Sub ComboBox1_DropButtonClick() ComboBox1.ListFillRange = "newaccounts" Me.ComboBox1.DropDown ActiveSheet.Unprotect Password:="asdf" End Sub Private Sub ComboBox1_LostFocus() ActiveSheet.Protect Password:="asdf" End Sub
@flowrittarose
@flowrittarose 7 лет назад
this is the code Private Sub ComboBox1_DropButtonClick() ComboBox1.ListFillRange = "newaccounts" Me.ComboBox1.DropDown ActiveSheet.Unprotect Password:="asdf" End Sub Private Sub ComboBox1_LostFocus() ActiveSheet.Protect Password:="asdf" End Sub
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
Works fine. The combo-box is an ActiveX control on your worksheet.
@rkthakur4335
@rkthakur4335 6 лет назад
Sir how I run macro in structure protected workbook
@Exceltrainingvideos
@Exceltrainingvideos 6 лет назад
www.exceltrainingvideos.com/run-vba-code-macro-on-protected-sheet/
@haribabu-nl5rg
@haribabu-nl5rg 7 лет назад
how to run macro in shared workbook?
@Exceltrainingvideos
@Exceltrainingvideos 7 лет назад
You can run existing macros.
@sanatpattnaik5454
@sanatpattnaik5454 9 лет назад
Hello Sir, I want to Run The VBA Code With a Protect Workbook..
@Exceltrainingvideos
@Exceltrainingvideos 9 лет назад
Sanat Pattnaik www.exceltrainingvideos.com/run-vba-code-macro-on-protected-sheet/ ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-wv1AgZR9G2c.html
@ankitchand3275
@ankitchand3275 6 лет назад
This code use in workbook password protected
@leech7172
@leech7172 5 лет назад
How to run VBA Code on Protected File
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
First unprotect the file, do your actions and then protect it again before closing as shown in the video. For more solutions search www.exceltrainingvideos.com/
@elmnycollin1508
@elmnycollin1508 5 лет назад
😂 you really confused your student and you haven’t solved his problem. Your student wanted to know how to have sort button with protected sheet without error and you explained here how to password protect a sheet in vba. Lol 😂 you solved the problem by removing his fancy button. Poor student!
@Exceltrainingvideos
@Exceltrainingvideos 5 лет назад
You have a point.
@amolpandit6272
@amolpandit6272 2 года назад
Thank you sir
@Exceltrainingvideos
@Exceltrainingvideos 2 года назад
All the best
Далее
How To Create Vba Code Modules In Excel
11:19
Просмотров 139 тыс.
Пришёл к другу на ночёвку 😂
01:00
Standoff 2 is a true horror! #standoff #horror #meme
00:13
Automatically Protect Workbook with Password
11:38
Просмотров 8 тыс.
How to make your Excel VBA code run 1000 times faster
16:55
Use Macros on Password Protected Worksheets in Excel
15:50
VBA Macro to Copy Data from Another Workbook in Excel
13:39
Пришёл к другу на ночёвку 😂
01:00