473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

alteration in msword2003 from vb6

3
hi all,
pls help me in swapping of two words and also paragraphs and deleting a character in msword2003 through visual basic 6... i have done for deleting words.. please do help for the above...
thank u
May 18 '07 #1
4 1043
Dököll
2,364 Expert 2GB
hi all,
pls help me in swapping of two words and also paragraphs and deleting a character in msword2003 through visual basic 6... i have done for deleting words.. please do help for the above...
thank u
Hiya, disc!

Please add what you've done thus far, if you wouldn't mind. I did some snooping around and could not find anything concrete, perhaps your code can help shed some light. How's that for a deal?

Dököll
May 19 '07 #2
disc
3
Hiya, disc!

Please add what you've done thus far, if you wouldn't mind. I did some snooping around and could not find anything concrete, perhaps your code can help shed some light. How's that for a deal?

Dököll
hi,
thanks for the reply.well... below is some code ...hope that is enough to shed u full light!
i am using vb6 and msword 2003

Set wApp = New Word.Application
'wApp.Visible = True
Dim doc As Word.Document
Set doc = wApp.Documents.Open("a.doc")
doc.Words(a).Select //say a is 9 ie 9th word in word document
'wApp.Selection.Delete

please do reply soon
thank u
May 23 '07 #3
Dököll
2,364 Expert 2GB
hi,
thanks for the reply.well... below is some code ...hope that is enough to shed u full light!
i am using vb6 and msword 2003

Set wApp = New Word.Application
'wApp.Visible = True
Dim doc As Word.Document
Set doc = wApp.Documents.Open("a.doc")
doc.Words(a).Select //say a is 9 ie 9th word in word document
'wApp.Selection.Delete

please do reply soon
thank u
This just in, Disc, from a microsoft site example, you may need to copy an paste for additional words:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub SearchReplace()
  3.     Application.Selection.Find.ClearFormatting()
  4.     Application.Selection.Find.Text = "find me"
  5.  
  6.     Application.Selection.Find.Replacement.ClearFormatting()
  7.     Application.Selection.Find.Replacement.Text = "Found"
  8.  
  9.     Application.Selection.Find.Execute(Replace:=Word.WdReplace.wdReplaceAll)
  10. End Sub
  11.  
Here's the link: http://msdn2.microsoft.com/en-us/lib...3d(VS.80).aspx

Have fun!
May 25 '07 #4
disc
3
hi,
thank u.. well was quite usefull,
aaa...but i didnt get what i needed..i meam swapping of paragraphs and words and deletion of charaters that should be done on word document (msword2003)through vb6. if possible please try
thanking u v much
disc
May 25 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
2
by: Stephan Hauduc | last post by:
What I think is the best way for me to do what I want to do is have a text file which contains the following, the number of slides at the top, then the time lengths that each file should be...
0
by: vincemoon | last post by:
Below is an excerpt from my Registry Log, created by Redmon, showing the process whereby TweakUI added the compressed folder option to the new sub-menu in the right click context menu for open...
5
by: alexandre damiron | last post by:
The following Addel function renders a new line on Mozilla but nothing on IE 6 , yet no error is parsed neither on IE nor Mozilla. Any explanation ? Thanks a lot. <html> <head> <title>Mozilla...
4
by: shorti | last post by:
Can anyone explain in greater (and more comprehensive) detail what the RESTART option does in the ALTER TABLE table ALTER COLUMN statement. This is the description in Info Center: RESTART or...
3
by: ananth | last post by:
Hi All, I have a code that generates list of installed softwares available on the pc but the code works fine when written in a console application project in visual basic 2005. How can the same...
1
by: manoj raut | last post by:
how to alter the paticular column in table for cerating sequence as auto generated.
2
by: foal11 | last post by:
Hi all, My problem is that I have generated a text file on unix which I want to print on a neoware(Neolinux) box. The problem is that the line length is 2 big so when I print it the text is...
2
by: Chris W | last post by:
Hi All, I have hundreds of small XML files of the form (extrabeous stuff removed): <?xml version="1.0"?> <!DOCTYPE page PUBLIC "-//LOCAL//DTD PAGE 0.1//EN" "page.dtd"> <page> <graphic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.