• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

SPELL CHECK APPL. IN VB

HOW TO INCORPORATE THE WORDS SPELL CHECK PROGRAM AFTER CHECKING THE MICROSOFT WORD APPLICATION FROM THE REFERENCES AND BY NOT OPENING OR USING THE CreateDoc FUNCTION AND BY USING ONLY THE RANGE OBJECT OF THE APPLICATION

2.OLE EMBEDDING CONCEPTS IN VB AT DESIGN TIME
0
kuki_1975
Asked:
kuki_1975
  • 2
1 Solution
 
kuki_1975Author Commented:
THE SITE IS EXTREMELY HELPFUL AND THE CONCEPT IS VERY UNIQUE
0
 
Jon_RaymondCommented:
Is this what you had in mind?  it's adapted from word vba help:

DIM oWord As Word.Applicaion
With oWord

   'This example determines whether
   'spelling in section one of the
   'active document has been checked.  
   'If spelling hasn't been checked,
   ' the example starts a spelling check.

  Set myRange = .ActiveDocument.Sections(1).Range
  isChecked = myRange.SpellingChecked
  If isChecked = False Then
      myRange.CheckSpelling
  Else
      MsgBox "The range has already been spell checked."
  End If

  'This example sets the
  'SpellingChecked property to False
  ' for MyDocument.doc, and then it
  ' runs another spelling check on the document.

  .Documents("MyDocument.doc").SpellingChecked = False
  .Documents("MyDocument.doc").CheckSpelling       IgnoreUppercase:=False

End With
0
 
sdland1Commented:
go to http://lightning.prohosting.com/~shell123/ search the complete apps section for wordproccess.zip
0
 
kuki_1975Author Commented:
sdland1's ans is useful in their way explained & its working but my basic requirement was to directly invoke a spell check in a control say for a ordinary text box with out calling the getObject() because this is opening a word doc. directly & then spell checking it in this doc window which i don't want ultimately asking me if i would like to save that document i.e., it using the concept of ole
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now