ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Workbook HighlightChangeOption ??? (https://www.excelbanter.com/excel-programming/374474-workbook-highlightchangeoption.html)

ChadF

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



NickHK[_3_]

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





Piers 2k

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




All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com