Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Kelley Lawson   on Jan 27 In MS Office Category.

  
Question Answered By: Alisha Johnson   on Jan 27

You just add

Password:= "Password"

In the following I have split the code  into separate lines so it won't get
messed up by the email program and is easier to read. To split a line you
insert a space, and underline and a return character(enter)


ActiveSheet.Protect _
DrawingObjects:=True, _
Contents:=True, _
Scenarios:=True, _
AllowFormattingCells:=True, _
AllowFormattingColumns:=True, _
AllowFormattingRows:=True, _
AllowSorting:=True, _
AllowFiltering:=True _
Password:= "Password"

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How to PASSWORD protect a worksheet Or get search suggestion and latest updates.


Tagged: