Highlight user changes to cells

Clara
04-02-2003, 08:03 PM
I am writing an application that takes data from MSProject and writes it to excel. I want to set certain cells within the spreadsheet to change (color, highlight - it dosen't matter)
so I went into excel and recorede a macro in tracking changes and then I tried to apply that code to vb, It dosen't recognize the method ".HighlightChangesOptions When:=xlAllChanges " and I can't find anything similar in Vb. Her is the code from the excel macro.

Objxl.Range("A3").Select
Objxl.Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
With ActiveWorkbook
.HighlightChangesOptions When:=xlAllChanges
.ListChangesOnNewSheet = False
.HighlightChangesOnScreen = True
End With
Does anyone know how I can make this work or offer a different solution to my problem.

as always I appreciate all of your help

thanks
clara

Granty
04-03-2003, 03:51 AM
The method Workbook.HighlightChangesOptions accepts parameters(when, who, where).

So I am guessing you need
ActiveWorkBook.HighlightChangesOptions xlAllChanges
or
ActiveWorkBook.HighlightChangesOptions(xlAllChanges)

Sorry, cant test which atm...

italkid
04-03-2003, 04:47 AM
I think the code will only work if the workbook is saved as a "shared" workbook. (not shure)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum