Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help Getting Started
Message
From
07/07/1998 12:52:52
 
 
To
07/07/1998 09:48:53
General information
Forum:
Microsoft Office
Category:
Word
Miscellaneous
Thread ID:
00111810
Message ID:
00114958
Views:
17
Hi Chaim,

I am glad to read that you're making progress. I will research the
the MS doc numbers and forward them to you.
Hi Chaim,
Hi Chaim,

I'm glad to read you're making progress. I will research the MS doc
Id's and forward them to you.

The books I'm using: Word 97 Macro & VBA handbook by
Guy Hart-Davis pub-Sybex ISBN:0-7821-1962-X is 800 pages of just
Word/VBA/Macros. The other one by SAMS titled Office97 Professional
Edition is about the same size, hard cover and addresses Excel,
Access and PowerPoint as well as Word. The VFP/VBA code for using
the Word Spell Checker in VFP is available in the latest issue of
FoxTalk from Pinnacle Publishing.

As I stated previously my main problem has been not knowing what command
to research. Unlike FPW/VFP when it comes to VBA it can be a Selection,
Document, Documents, Active etc. command. Also the syntax seems to
be unusual to say the least:

.ActiveDocument.BookMarks("bookmark name").Select
and
.Documents('Path DocName.doc').Activate

I guess I got spoiled with dBase/DBXL/Clipper/Fox syntax.

I have two unresolved questions regarding Word/VBA:

1. How to do an Insert/Replace at a bookmark?
Currently I:
Scan While
.Documents.Open(Template)
.ActiveDocument.BookMarks("bookmark name").Select
.Selection.TypeText('whatever')
........
etc.
.Application.PrintOut
.ActiveDocument.Close(0) && Closes without saving
EndScan

Insert/Replace might negate Closing and reopening the template.


I had some sample code many months ago; I never got around to trying
it and now I can't find it.

Also
Previous
Reply
Map
View

Click here to load this message in the networking platform