How to allow Macros on a protected worksheet in Excel | Excel On The Go

How to allow Macros on a protected worksheet in Excel | Excel On The Go

Excel Off The Grid

1 год назад

22,868 Просмотров

★ Want to automate Excel? Check out our training academy ★
https://exceloffthegrid.com/academy


★ About this video ★
In this video we show you how to easily enable macros on an protected excel worksheets.


★ Download 30 most useful Excel VBA Macros ebook for FREE ★
https://exceloffthegrid.com/


★ Where to find Excel Off The Grid ★
Blog: https://exceloffthegrid.com

Twitter: https://twitter.com/exceloffthegrid


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


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

@mr.write1433
@mr.write1433 - 07.12.2023 14:13

omg i tried it now and its working men you save me lol.. Some of my codes didnt work on unprotect prot method but this one does . lol thanks a lot bro! this method is so rare and simple. i fortunately click your video !!

Ответить
@mr.write1433
@mr.write1433 - 07.12.2023 00:44

Bro i wanted my workbook to be protected everytime. I just allow some ranges to open. The problem is i connected my macro on multiple sheets. The problem is how can i deactivate 2 ranges from a different sheet at the same time. Allow ranges has different password on my workbook.

Ответить
@mr.write1433
@mr.write1433 - 07.12.2023 00:30

This is my main problem i have a very complex macro.. if i protect and unprotect it will ask everytime i do something with password . Ill try this tomorrow

Ответить
@Matt-pw7tg
@Matt-pw7tg - 04.12.2023 03:07

Great video.
Does this work if I have more than one sheet in the workbook that is protected. I had it running properly for one sheet but when I protected the second sheet it stopped working.
Any help appreciated 😀

Ответить
@LordBransty
@LordBransty - 23.11.2023 21:10

You're a godsend. I've subscribed.

Ответить
@bethjovi
@bethjovi - 22.10.2023 18:28

How did you add the sub called allow macro? It showed up on your video but how did you get it in there?

Ответить
@louisbuys6886
@louisbuys6886 - 12.10.2023 12:47

Hi Mark. I used a macro to highlight the active cell. Got the 1004 error and when trying to apply your solution, I got a Runtime 9 error. Can you spot the problem😁. Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("A100") = ActiveCell.Address

End Sub

Private Sub AllowMacroWhenProtected()

Sheets("sheet2").Protect Password:="Password", _
UserInterfaceOnly:=True

End Sub

Ответить
@s1ngularityxd64
@s1ngularityxd64 - 22.09.2023 21:16

exactly what I need. 🥰

Ответить
@royburtocobb
@royburtocobb - 01.09.2023 10:08

Worked perfect! You the man! Thanks

Ответить
@ApplyThoughts
@ApplyThoughts - 24.07.2023 16:10

For shared files it is not working... can u please suggest what can We do for that

Ответить
@iamteeten
@iamteeten - 18.05.2023 18:26

Hope you can help me with my macro issues 😢

Ответить
@JaspreetSingh-it2ny
@JaspreetSingh-it2ny - 08.05.2023 18:47

Thanks Man, that was wonderful

Ответить
@nickshutte8369
@nickshutte8369 - 16.04.2023 16:36

Brilliant thanks!

Ответить
@user-pg7lo2hd6z
@user-pg7lo2hd6z - 14.04.2023 04:24

This trick isn't working for me: I have a Query Refresh attached to a macro button, but once the sheet is protected it's not able to refresh? UserInterfaceOnly:=True is also highlighted in red, but I'm unable to add the apparent comma and underscore in the code that's shown?

Ответить
@paulmartinlife
@paulmartinlife - 05.04.2023 13:03

A question for you Mark, the UserInterfaceOnly argument doesn't always work for me and my workaround is the clunky Worksheet.Unprotect and Worksheet.Protect route. Have you found this? It's a mystery to me.

Ответить
@Bishnu-hh7rm
@Bishnu-hh7rm - 19.03.2023 04:34

i want to run automatic macro in some protected sheet. how it is possible?

Ответить
@ivancortinas5427
@ivancortinas5427 - 04.03.2023 11:23

Excellent channel Mark. Excellent contents. Interesting, powerful, useful... Thank you!!!

Ответить
@minamishail6029
@minamishail6029 - 27.02.2023 16:39

Can we do a similar process when we work with externally protected workbooks, using power query or VBA?

Ответить
@michaelangellotti5741
@michaelangellotti5741 - 27.02.2023 13:46

I'm tired of unprotecting & protecting again. Many thanks.

Ответить
@houstonsam6163
@houstonsam6163 - 27.02.2023 05:51

Many thanks, this will be extremely helpful for the development projects I take on, including one I'm finishing up right now.

Ответить
@edward9840
@edward9840 - 27.02.2023 03:14

Very useful. Thank you.

Ответить