Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Workbook HighlightChangeOption ???

I have a piece of code that barfs on the following set of lines

Workbooks(WorkingFileName).Unprotect
Workbooks(WorkingFileName).KeepChangeHistory = True
Workbooks(WorkingFileName).HighlightChangesOnScree n = True
Workbooks(WorkingFileName).Protect

What I want to do is set the HighlightChangesOnScreen flag to True
for this particular workbook on the fly. (Not during a regular session, want
to put this in a macro.)

Originally thought that unprotecting the workbook would work, but VBA still
barfs on setting that flag. How can I get around this ??

Thanks in advance,
ChadF


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Workbook HighlightChangeOption ???

Chad,
IIRC these only take effect on shared workbooks.

NickHK

"ChadF" ...
I have a piece of code that barfs on the following set of lines

Workbooks(WorkingFileName).Unprotect
Workbooks(WorkingFileName).KeepChangeHistory = True
Workbooks(WorkingFileName).HighlightChangesOnScree n = True
Workbooks(WorkingFileName).Protect

What I want to do is set the HighlightChangesOnScreen flag to True
for this particular workbook on the fly. (Not during a regular session,
want
to put this in a macro.)

Originally thought that unprotecting the workbook would work, but VBA
still
barfs on setting that flag. How can I get around this ??

Thanks in advance,
ChadF




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Workbook HighlightChangeOption ???

When you do it manually, Excel saves the file. Try saving the file after
KeepChangeHistory, and putting the file into xlShared mode.

Workbooks(WorkingFileName).KeepChangeHistory = True
Workbooks(WorkingFileName).SaveAs , , , , , , xlShared

See how that does

Piers


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
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Excel Programming 1 April 1st 06 08:48 PM
Select sheet tabs in workbook & save to separate workbook files stratocaster Excel Worksheet Functions 2 March 1st 06 03:35 PM
Running a macro to protect a workbook on a already protected workbook UNprotects the workbook ?? WimR Excel Programming 9 July 25th 05 12:44 PM
Copy a range of cells in an unopened workbook and paste it to the current workbook topstar Excel Programming 3 June 24th 04 12:50 PM
What commands do you use to name a workbook, save a workbook,open a workbook Steven R. Berke Excel Programming 1 July 24th 03 11:37 PM


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