Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default Protect workbook & keep change history

Hi all, i recorded a macro to do the above and then changed it for
"ActiveWorksheet" and now i get the following error mesage:
Run-time error '1004' Method "HighlightChangesOptions' of
Object'_Workbook' Failed ?? Could somebody please help

Sub ProtectWorksheetStd()
'
'

Columns("H:H").Locked = False
ActiveSheet.EnableSelection = xlUnlockedCells
ActiveSheet.Protect Password:="secret", Scenarios:=True
ActiveWorkbook.KeepChangeHistory = True
ActiveWorkbook.Save
With ActiveWorkbook
.HighlightChangesOptions When:=xlAllChanges, Who:="Everyone",
Whe= _
"H:H"
.ListChangesOnNewSheet = False
.HighlightChangesOnScreen = True
End With
Range("H3").Select

End Sub



Tempy

*** Sent via Developersdex http://www.developersdex.com ***
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
change formula in a shared worksheet without losing change history DCE Excel Worksheet Functions 5 July 25th 08 01:37 PM
How to change the default of 30 days change history Andy Smith[_2_] Excel Discussion (Misc queries) 6 October 23rd 07 11:57 PM
On screen change history GPoe Excel Discussion (Misc queries) 0 January 22nd 07 07:54 PM
How change days of change history tracking? DonSpmp Excel Worksheet Functions 3 August 25th 06 01:13 AM
cant not change history on a shared workbook cyndi Excel Discussion (Misc queries) 0 December 15th 05 08:14 PM


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