Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Code Glitch from version to version

Sub Run_Update1()
Application.ScreenUpdating = False
Sheets("Sheet1").Unprotect Password:="George"

Why does this code work fine in all Excel versions except Windows 95 Excel
97? It freezes at the Unprotect line. I have about 200 computers running
this and about 5 run Windows 95 and Excel 97. The rest run version 2000 or
better. On all the 95/97 computers the code freezes at the Unprotect line of
code???

--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Code Glitch from version to version

Hi

Not really sure what the problem is, but I have run into errors with
protecting in excel 97 on occasion. I have found that if you select a cell
first, you don't get those occasional errors. I know you are not supposed to
have to select and selecting slows things down, but this is just my personal
experience with excel 97.

Sub Run_Update1()
Sheets("Sheet1").Range("a1").select
Application.ScreenUpdating = False
Sheets("Sheet1").Unprotect Password:="George"

if doing additional sheets, select a cell on the next sheet as well like


Sub Run_Update1()

Application.ScreenUpdating = False
Sheets("Sheet1").Range("a1").select
Sheets("Sheet1").Unprotect Password:="George"

Sheets("Sheet2").Range("a1").select
Sheets("Sheet2").Unprotect Password:="George"
Application.ScreenUpdating = True


HTH

Ken


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Code Glitch from version to version

This is worth a try and is probably just "silly" enough to work. Thanks for
the pointer.

"Ken Macksey" wrote:

Hi

Not really sure what the problem is, but I have run into errors with
protecting in excel 97 on occasion. I have found that if you select a cell
first, you don't get those occasional errors. I know you are not supposed to
have to select and selecting slows things down, but this is just my personal
experience with excel 97.

Sub Run_Update1()
Sheets("Sheet1").Range("a1").select
Application.ScreenUpdating = False
Sheets("Sheet1").Unprotect Password:="George"

if doing additional sheets, select a cell on the next sheet as well like


Sub Run_Update1()

Application.ScreenUpdating = False
Sheets("Sheet1").Range("a1").select
Sheets("Sheet1").Unprotect Password:="George"

Sheets("Sheet2").Range("a1").select
Sheets("Sheet2").Unprotect Password:="George"
Application.ScreenUpdating = True


HTH

Ken



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
How do I save an Excel 97-2003 version or 2007 version for Mac 200 Bronigal Excel Discussion (Misc queries) 1 December 7th 09 08:04 AM
Wrap Text: Print Version different than Screen Version sh2195 Excel Discussion (Misc queries) 0 August 25th 08 03:52 PM
How can I get the same colors from 2003 version to 2007 version? Darin Excel Discussion (Misc queries) 0 June 6th 08 02:33 PM
Help Required!!! Macro to load data from version 1 to version 2 [email protected] Excel Worksheet Functions 0 August 23rd 06 07:27 AM
Recover earlier version of excel sheet after new version saved? stephanie38 Excel Discussion (Misc queries) 3 June 17th 05 03:52 AM


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