• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Excel

How to set password protection for multiple Excel sheets at the same time

0 Comments

How to set password protection for multiple Excel sheets at the same time: Setting a password to protect an Excel sheet is essential if you do not want others to modify your data. However, if an Excel file has multiple sheets, setting a password for all sheets can be time-consuming and laborious if done manually. Follow the steps below to learn how to set password protection for multiple Excel sheets at the same time.

1. Set password protection for an Excel sheet in the usual way

Usually, to set a password to protect an Excel sheet, you need to open the sheet and select the Review tab on the toolbar. Then, select Protect Sheet under the Protect section.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

Alternatively, you can right-click on the sheet and select Protect Sheet.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

Now, the Protect Sheet dialog box appears. Enter the password you want to use to unprotect the sheet in the Password to unprotect sheet field, and click OK. This way, the current sheet is password protected. Repeat these steps for all the other sheets you want to password protect. However, this can be time-consuming if you want to set a password for many sheets at once.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

2. Set password protection for multiple Excel sheets using VBA

To set password protection for multiple Excel sheets at the same time using VBA, first, select the Developer tab on the toolbar. Then, click on Visual Basic under the Code section. Alternatively, you can use the keyboard shortcut Alt + F11 to open the VBA window.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

Now, the Microsoft Visual Basic for Applications window appears. Select the Insert tab on the toolbar, and then select Module from the drop-down list.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

Next, copy the code below into the Module window.

Sub Protect_Unprotect_Ws()
Dim Ws As Worksheet
For Each Ws In Worksheets
Ws.Protect Password:="Buffcom.net"
Next Ws
Set Ws = Nothing
End Sub

Replace “password” with the password you want to use. Then, click on the Run button on the toolbar or press F5 to run the code. This will set password protection for all sheets in your Excel file.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

If you want to remove the password protection, you can unlock all sheets by entering the code below into the Module window.

Sub Protect_Unprotect_Ws()
Dim Ws As Worksheet
For Each Ws In Worksheets
Ws.Unprotect Password:="buffcom.net"
Next Ws
Set Ws = Nothing
End Sub

Again, replace “password” with the password you used to set the password protection. Then, click on the Run button on the toolbar or press F5 to run the code. This will unlock all sheets in your Excel file.

How to set password protection for multiple Excel sheets at the same time

How to set password protection for multiple Excel sheets at the same time

In this way, the article has shown you how to set password protection for multiple Excel sheets at the same time. Hopefully, this article will be useful to you in your work. Good luck!

Rate this post
24
243 Views
3 ways to calculate the sum by range using the SUM function in ExcelPrev3 ways to calculate the sum by range using the SUM function in ExcelMarch 21, 2023
Printing in Excel - Tricks You Need to KnowMarch 21, 2023Printing in Excel - Tricks You Need to KnowNext

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • Kaspersky Internet Security 2021 1 year 5 devices key Global Kaspersky Internet Security 2021 1 year 5 devices key Global
    Rated 5.00 out of 5
    $45.00
  • Windows Server 2022 Datacenter Key Global Windows Server 2022 Datacenter Key Global
    Rated 5.00 out of 5
    $7.00
  • Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year Kaspersky Small Office Security 10 PCs + 10 Mobiles + 1 Server 1 Year
    Rated 5.00 out of 5
    $164.50
  • Avast Ultimate Suite 2021 1 Year 10 Devices Global Avast Ultimate Suite 2021 1 Year 10 Devices Global
    Rated 5.00 out of 5
    $54.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
Products
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 1 Year AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 1 Year
    Rated 4.91 out of 5
    $34.00
  • Office 2016 Home and Student for PC Key CD Key Global Office 2016 Home and Student for PC Key CD Key Global
    Rated 4.96 out of 5
    $14.00
  • Microsoft Visio Professional 2010 Key 1PC Microsoft Visio Professional 2010 Key 1PC $9.00
  • Windows 10 Enterprise LTSC 2019 Key Global Windows 10 Enterprise LTSC 2019 Key Global
    Rated 4.83 out of 5
    $9.00
  • Microsoft Visual Studio 2022 Professional Key Microsoft Visual Studio 2022 Professional Key $19.00
  • Microsoft Office Professional Plus 2013 retail CD Key Global Microsoft Office Professional Plus 2013 retail CD Key Global
    Rated 4.97 out of 5
    $11.00
  • Microsoft Office Professional Plus 2019 CD Key Global Microsoft Office Professional Plus 2019 CD Key Global - 5 PC
    Rated 4.92 out of 5
    $32.00
  • Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year Kaspersky Small Office Security 20 PCs + 20 Mobiles + 2 Servers 1 Year $284.73
  • Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2019 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 4.72 out of 5
    $20.00
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.