p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Other Office > Word VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 22nd, 2009, 05:17 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Need help in word VBA

Hello Everyone,

I am new in word VBA and need help with below thing:-

I am into a job where I receive word documents from customers with questions in it regarding our services and products. Many a times I receive a template which has almost the same questions I already have answered into the previous word doc to previous customer.

In this scenario I want to make such a code that once I come across a question which I have already answered in previous template I trigger the code and it searches for the question of the current doc into the previously answered document (which is also open on my system) and once it finds it copies the answer to it, comes back to the current document and paste it right below the question.


Please let me know if that's possible and if yes how to do the codes..
I have been doing Excel VBA codes but have not a little idea about word coding.

Thanks in advance :)>

Regards,
Premanshu.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old May 22nd, 2009, 09:31 AM
Friend of Wrox
Points: 1,440, Level: 15
Points: 1,440, Level: 15 Points: 1,440, Level: 15 Points: 1,440, Level: 15
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: Sep 2005
Location: , , .
Posts: 417
Thanks: 0
Thanked 14 Times in 14 Posts
Default

First let me appreciate for your thoughts. The concept is widely called as KADB - Known Answer Database and mosty will be in some RDBMS

IF you are very much particular about the formatting, you can have it as a Word table - Column 1 containing the question and Column 2 the answer.

You can use Selection.Find to search for the question in column 1 and grab the answer from column 2

Give it a try

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old June 25th, 2009, 10:46 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default how to post a new question

I am new for this forum. I tried to post a new question, and am unable to know how do I post it? Can you help me? thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old June 26th, 2009, 11:04 PM
Friend of Wrox
Points: 1,440, Level: 15
Points: 1,440, Level: 15 Points: 1,440, Level: 15 Points: 1,440, Level: 15
Activity: 17%
Activity: 17% Activity: 17% Activity: 17%
 
Join Date: Sep 2005
Location: , , .
Posts: 417
Thanks: 0
Thanked 14 Times in 14 Posts
Default

On top of every forum you have a button called New Thread. You can use this to create new posts

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to Shasur For This Useful Post:
francoboiti (June 27th, 2009)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel to Word VBA genericcereal Word VBA 1 May 11th, 2009 09:25 PM
is there a folder for vba word? muki Excel VBA 3 November 18th, 2005 05:46 AM
vba and MS Word Earl G. Hyde VB How-To 0 December 27th, 2003 02:06 AM
Word VBA sdowen Excel VBA 4 December 3rd, 2003 04:32 PM
VBA Word gcookie79 Excel VBA 1 November 12th, 2003 01:04 PM



All times are GMT -4. The time now is 11:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc