Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
andremations
 
Posts: n/a
Default Preventing Movement in Protected Areas in Microsoft Excel


Hi All,

Is there a way to save the EnableSelection property of a sheet? Because
whenever I open a saved sheet after I have changed the EnableSelection
property from 0-x|NoRestrictions to 1-x|UnlockedCells the property
always changes back 0-x|NoRestrictions. Thanks in advance.

Andre


--
andremations
------------------------------------------------------------------------
andremations's Profile: http://www.excelforum.com/member.php...o&userid=28688
View this thread: http://www.excelforum.com/showthread...hreadid=484307

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default Preventing Movement in Protected Areas in Microsoft Excel

You could set it each time the workbook opens (with macros enabled):

Option Explicit
Sub auto_open()
Dim wks As Worksheet
Set wks = Worksheets("sheet1")
With wks
.Select
.Protect
.EnableSelection = xlUnlockedCells
End With
End Sub



andremations wrote:

Hi All,

Is there a way to save the EnableSelection property of a sheet? Because
whenever I open a saved sheet after I have changed the EnableSelection
property from 0-x|NoRestrictions to 1-x|UnlockedCells the property
always changes back 0-x|NoRestrictions. Thanks in advance.

Andre

--
andremations
------------------------------------------------------------------------
andremations's Profile: http://www.excelforum.com/member.php...o&userid=28688
View this thread: http://www.excelforum.com/showthread...hreadid=484307


--

Dave Peterson
  #3   Report Post  
andremations
 
Posts: n/a
Default Preventing Movement in Protected Areas in Microsoft Excel


Thanks for the quick reply Dave!

I have already placed the "script" that you told me in VBA. Got one
more question here... (I am really new to most advanced features of
Excel). Can you please tell me how to Enable the Macros?


--
andremations
------------------------------------------------------------------------
andremations's Profile: http://www.excelforum.com/member.php...o&userid=28688
View this thread: http://www.excelforum.com/showthread...hreadid=484307

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default Preventing Movement in Protected Areas in Microsoft Excel

Two steps.

Depending on your version, the options could be different--but in xl2002+
Tools|macro|security|security level
change your setting to medium to be prompted each time you open a workbook with
macros or change it to low to never be prompted. (Low isn't recommended by MS.)

Then close your workbook and reopen it.
Answer yes to allow macros (if you get prompted).

Note that this is a user setting. If you share the workbook with others,
they'll have to make the same kind of decisions. You won't be able to change
this setting (via your code) if they don't enable macros.

andremations wrote:

Thanks for the quick reply Dave!

I have already placed the "script" that you told me in VBA. Got one
more question here... (I am really new to most advanced features of
Excel). Can you please tell me how to Enable the Macros?

--
andremations
------------------------------------------------------------------------
andremations's Profile: http://www.excelforum.com/member.php...o&userid=28688
View this thread: http://www.excelforum.com/showthread...hreadid=484307


--

Dave Peterson
  #5   Report Post  
andremations
 
Posts: n/a
Default Preventing Movement in Protected Areas in Microsoft Excel


Thank you so much!


--
andremations
------------------------------------------------------------------------
andremations's Profile: http://www.excelforum.com/member.php...o&userid=28688
View this thread: http://www.excelforum.com/showthread...hreadid=484307



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excell VS Office Cathyandrea Excel Discussion (Misc queries) 1 September 19th 05 07:02 AM
Microsoft Excel in Microsoft works - how to open R J Gavin Excel Discussion (Misc queries) 3 September 16th 05 08:29 PM
Want to buy just EXCEL 2003 not the entire microsoft office suite Jeffrey Brown Excel Discussion (Misc queries) 3 September 15th 05 01:38 AM
How do I show protected cells in an EXCEL worksheet laurentdada Excel Discussion (Misc queries) 3 April 19th 05 01:45 PM
Microsoft Excel tries to load front page on opening Excel and Front Page Excel Discussion (Misc queries) 1 March 21st 05 08:51 PM


All times are GMT +1. The time now is 02:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"