It is currently Sat Nov 22, 2008 1:41 am


All times are UTC [ DST ]




Reply to topic  [ 3 posts ] 
Author Message
 Post subject: VB6 Spellcheck
PostPosted: Wed Aug 20, 2008 5:07 pm 
Aciid Whore
User avatar
Offline

Joined: Sun Jan 20, 2008 9:34 pm
Posts: 2707
Location: Devon, UK
You could make a spellchecker app with is code, or just random textbox lmfao, thanks martinliss for this..

Code:
Dim objWord As Object    Dim objDoc  As Object    Dim strResult As String        'Create a new instance of word Application    Set objWord = CreateObject("word.Application")     Select Case objWord.Version        'Office 2000        Case "9.0"            Set objDoc = objWord.Documents.Add(, , 1, True)        'Office XP        Case "10.0"            Set objDoc = objWord.Documents.Add(, , 1, True)        'Office 97        Case Else ' Office 97            Set objDoc = objWord.Documents.Add    End Select     objDoc.Content = Text1.Text    objDoc.CheckSpelling     strResult = Left(objDoc.Content, Len(objDoc.Content) - 1)     If Text1.Text = strResult Then        ' There were no spelling errors, so give the user a        ' visual signal that something happened        MsgBox "The spelling check is complete.", vbInformation + vbOKOnly    End If        'Clean up    objDoc.Close False    Set objDoc = Nothing    objWord.Application.Quit True    Set objWord = Nothing     ' Replace the selected text with the corrected text. It's important that    ' this be done after the "Clean Up" because otherwise there are problems    ' with the screen not repainting    Text1.Text = strResult     Exit Sub __________________

_________________
Image SUCKS.


 Profile E-mail  
 
 Post subject: Re: VB6 Spellcheck
PostPosted: Sat Aug 23, 2008 7:52 pm 
Newbie
Offline

Joined: Thu May 29, 2008 6:37 am
Posts: 3
HEY DOES ANY ONE NO WERE I CAN GET MY HANDS ON VISUAL BASIC 6 I ALLREADY NO HOW TO PROGRAM JUS NEED VISUAL BASICS


 Profile E-mail  
 
 Post subject: Re: VB6 Spellcheck
PostPosted: Sat Aug 23, 2008 7:55 pm 
Coding fail
User avatar
Offline

Joined: Thu Nov 08, 2007 8:35 pm
Posts: 3869
Location: I come from a land down under
PLIES wrote:
HEY DOES ANY ONE NO WERE I CAN GET MY HANDS ON VISUAL BASIC 6 I ALLREADY NO HOW TO PROGRAM JUS NEED VISUAL BASICS

Its in software :p

_________________
sparkeybabes wrote:
Liam Thinks hes hard. :n00b:

Image


 Profile E-mail  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB3
Aciid Forums © 2008