Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Why does the EnableSelection-xlNoSelection stick thru the user interface?

I'm asking this question, because I have a specific need to lock many worksheets at one time, and not allowing any selection of cells when I'm done. I've written a VBA scription to do this. As has been posted before, the EnableSelection-xlNoSelection sticks thru the user interface, but you must insert code into the Excel that you protected for it to stick. Why does the EnableSelection-xlNoSelection stick thru the user interface? My users do not want to enable macros every time.

Does anyone know of ANY way to make this property stick, like it does by using the Protection user interface? I appreciate any help on this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Why does the EnableSelection-xlNoSelection stick thru the user interface?

There are a number of properties that are not persistent, such as
EnableSelection, ScrollArea and Protect with UserInterfaceOnly set to True.
AFAIK this is by design and there is no way to change it.

--

Vasant



"IanS" wrote in message
...
I'm asking this question, because I have a specific need to lock many

worksheets at one time, and not allowing any selection of cells when I'm
done. I've written a VBA scription to do this. As has been posted before,
the EnableSelection-xlNoSelection sticks thru the user interface, but you
must insert code into the Excel that you protected for it to stick. Why
does the EnableSelection-xlNoSelection stick thru the user interface? My
users do not want to enable macros every time.

Does anyone know of ANY way to make this property stick, like it does by

using the Protection user interface? I appreciate any help on this.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Why does the EnableSelection-xlNoSelection stick thru the user interface?

Thanks for the info. So, just to clarify, even though these properties are not persistent, something in the UserInterface can make the property persistent? I am very new to excel programming, and I just find it strange that it is persistent by using the Protection-Protect Sheet on the Tools menu, and the xlNoSelection sticks when I reopen, but when I do the same thing thru code, it doesn't stick.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Why does the EnableSelection-xlNoSelection stick thru the userinterface?

Strange, but true.

But be a little careful if you share the workbook with people who use earlier
versions of excel.

The code works nicely in that case.

IanS wrote:

Thanks for the info. So, just to clarify, even though these properties are not persistent, something in the UserInterface can make the property persistent? I am very new to excel programming, and I just find it strange that it is persistent by using the Protection-Protect Sheet on the Tools menu, and the xlNoSelection sticks when I reopen, but when I do the same thing thru code, it doesn't stick.


--

Dave Peterson

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
Creating a user interface form Thi Navy Excel Discussion (Misc queries) 1 September 21st 08 08:28 PM
Fluent User Interface Ribbon Lost Frankie Excel Discussion (Misc queries) 1 July 21st 08 05:43 PM
2007 User Interface Bob P Excel Discussion (Misc queries) 10 February 21st 07 02:11 PM
Excel bug with sheet protection, user interface only?? Dag Johansen[_5_] Excel Programming 3 October 14th 03 04:43 PM
User Interface mickeyblake Excel Programming 2 July 15th 03 09:13 PM


All times are GMT +1. The time now is 12:50 PM.

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

About Us

"It's about Microsoft Excel"