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 Highlighting property

I have a piece of code that barfs on the following:


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

Workbooks(WorkingFileName).Protect

This set is at the bottom of a rather large macro in my application.

Trying to set the HighlightChangesOnScreen flag to True on the fly.

Originally thought that wrapping that statement between a
Workbook Protect/Unprotect would do the trick, but apparantly there's more
to it than that.

Any suggestions ??

Thanks,
Chad

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default Workbook Highlighting property

Hi Chad,
I have not worked much with Shared workbooks so please excuse me if I am off
the mark here.
I think you have to Share the workbook first.
Thanks.

"ChadF" wrote:

I have a piece of code that barfs on the following:


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

Workbooks(WorkingFileName).Protect

This set is at the bottom of a rather large macro in my application.

Trying to set the HighlightChangesOnScreen flag to True on the fly.

Originally thought that wrapping that statement between a
Workbook Protect/Unprotect would do the trick, but apparantly there's more
to it than that.

Any suggestions ??

Thanks,
Chad

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Workbook Highlighting property

Hey Alok,

I figured out what the problem was. Turns out that what I wanted to do was
to set up a Worksheet_Change event to change the background colour of a cell
that got changed if a flag was detected.

However I discovered that while this was seemingly 'harmless', what I didnt
bank on was that I had to modify the Application.EventEnable flag for other
operations within my code that did modify colours. What those subs were
doing - changing background colours on their own ... (part of a set of
automatic operations I had going in the Worksheet_Change event definition.)
.... When I wrapped those color change subs inside an Application.Enableevents
= False / True, the problem was corrected.

This post was my first attempt at doing such a thing (figured I'd give the
HighlightChange event a try. Wasnt successful, hence the post.)

Thanks for your input though.

Cheers,
Chad




"Alok" wrote:

Hi Chad,
I have not worked much with Shared workbooks so please excuse me if I am off
the mark here.
I think you have to Share the workbook first.
Thanks.

"ChadF" wrote:

I have a piece of code that barfs on the following:


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

Workbooks(WorkingFileName).Protect

This set is at the bottom of a rather large macro in my application.

Trying to set the HighlightChangesOnScreen flag to True on the fly.

Originally thought that wrapping that statement between a
Workbook Protect/Unprotect would do the trick, but apparantly there's more
to it than that.

Any suggestions ??

Thanks,
Chad

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
Remoew row highlighting when workbook is closed KevHardy Excel Discussion (Misc queries) 5 February 7th 10 11:53 AM
Workbook Property or Method Gary''s Student Excel Programming 3 February 17th 06 03:11 PM
workbook.saved property Jan[_17_] Excel Programming 2 November 22nd 05 05:07 PM
Changing Workbook Property PosseJohn Excel Programming 1 December 12th 04 08:25 PM
Worksheet / Workbook Change Property Peter Excel Programming 3 April 28th 04 01:56 PM


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