Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Excel 97 - xlNoSelection - problem

Hi all,

I have set the Worksheet properties to xlNoSelection (for certain sheets) in
a Excel 97 workbook. However if l save the workbook close it, then re-open
it the subject sheets have reverted to xlNoRestrictions !

The original workbook, written for XL2003, works fine.

Anybody know what causes this and if there is a solution / workaround.

TIA

Regards

Michael Beckinsale


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel 97 - xlNoSelection - problem



Workaround:
(code in thisworkbook module..)

Private Sub Workbook_Open()
Dim wks As Worksheet
If Val(Application.Version) = 8 Then
For Each wks In Me.Worksheets
wks.EnableSelection = xlNoSelection
Next
End If
End Sub


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Michael Beckinsale wrote in

Hi all,

I have set the Worksheet properties to xlNoSelection (for certain
sheets) in a Excel 97 workbook. However if l save the workbook close
it, then re-open it the subject sheets have reverted to
xlNoRestrictions !

The original workbook, written for XL2003, works fine.

Anybody know what causes this and if there is a solution / workaround.

TIA

Regards

Michael Beckinsale

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Excel 97 - xlNoSelection - problem

keepITcool,

Thanks for the reply & solution which of course works fine. I have had
to modify it slightly so it only applies to the specific sheets l need
restricted.

Do you know if this is a bug in Excel 97 ?

Can you confirm that Excel 97=8, Excel 2000=9, Excel 2003=10 please ?
Thinking about it what is Excel XP ?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel 97 - xlNoSelection - problem

dont know about the other versions.
remove the version check in the routine and you should be fine.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


wrote in
groups.com

keepITcool,

Thanks for the reply & solution which of course works fine. I have had
to modify it slightly so it only applies to the specific sheets l need
restricted.

Do you know if this is a bug in Excel 97 ?

Can you confirm that Excel 97=8, Excel 2000=9, Excel 2003=10 please ?
Thinking about it what is Excel XP ?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Excel 97 - xlNoSelection - problem

keepITcool,

Found the list of version numbers etc on John Walkenbachs' site if your
interested.

http://j-walk.com/ss/excel/index.htm



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 97 - xlNoSelection - problem

When set by code (only method is that shown by KeepItCool) in any version
(xl97 and later), it is not persistant

When set manually in xl2002 and later it is persistant.

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
keepITcool,

Thanks for the reply & solution which of course works fine. I have had
to modify it slightly so it only applies to the specific sheets l need
restricted.

Do you know if this is a bug in Excel 97 ?

Can you confirm that Excel 97=8, Excel 2000=9, Excel 2003=10 please ?
Thinking about it what is Excel XP ?



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
Colon at the end of excel file name(ex: problem.xls:1, problem.xls financeguy New Users to Excel 2 January 15th 10 01:15 AM
Problem viewing Excel 2003 Pivot Chart fields in Excel 2007 ronny B Charts and Charting in Excel 1 October 24th 08 10:08 PM
Weird problem with Excel 2000...Worksheets disappearing in a shared Excel file BrianL_SF Excel Discussion (Misc queries) 2 October 10th 06 08:27 PM
Started out as an Access problem. Now an Excel problem RobertM Excel Discussion (Misc queries) 2 April 26th 06 07:30 PM
Why does the EnableSelection-xlNoSelection stick thru the user interface? IanS[_2_] Excel Programming 3 June 8th 04 02:05 AM


All times are GMT +1. The time now is 10:33 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"