realbasic-nug
[Top] [All Lists]

RB and VBA constants in Word Automation

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: RB and VBA constants in Word Automation
From: Daniel <merantais at free dot fr>
Date: Thu, 31 Jan 2002 11:12:49 +0100
Hi all,

RB doesn't accept the VBA constants such as wdFindContinue or wdReplaceAll.
How is it possible to write them in order that the compiler doesn't
complain?

Here is the code:
  Dim word as wordApplication
  Dim doc as wordDocument
....
  word = new wordApplication
....
  word.selection.find.clearFormatting
  word.selection.find.Forward = True
  word.selection.find.Wrap = wdFindContinue // No !

Thank you for your help.

Daniel



<Prev in Thread] Current Thread [Next in Thread>