Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Highlight user changes to cells


Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-2003, 08:03 PM
Clara Clara is offline
Newcomer
 
Join Date: Apr 2003
Posts: 1
Default Highlight user changes to cells


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
Reply With Quote
  #2  
Old 04-03-2003, 03:51 AM
Granty Granty is offline
Junior Contributor
 
Join Date: Oct 2002
Location: London
Posts: 290
Default

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...
Reply With Quote
  #3  
Old 04-03-2003, 04:47 AM
italkid's Avatar
italkid italkid is offline
Down...

Retired Moderator
* Expert *
 
Join Date: Dec 2002
Location: Belgium.
Posts: 6,731
Default

I think the code will only work if the workbook is saved as a "shared" workbook. (not shure)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in updating database thro textbox (editable msflexgrid) SURESH MENON Database and Reporting 0 03-26-2003 10:57 PM
Highlight Flexgrid Cells GregGG General 2 12-09-2002 12:59 PM
Winsock slow or infinite loop on connect Dark_Nova Communications 4 10-11-2002 10:03 AM
Color Palette in User Form MJD Word, PowerPoint, Outlook, and Other Office Products 1 04-10-2002 05:26 PM
Appen user ishapiro Database and Reporting 0 09-21-2001 07:32 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->