View Single Post
 
Old 05-14-2010, 11:00 PM
Bahir Barak Bahir Barak is offline Windows XP Office 2003
Novice
 
Join Date: May 2009
Posts: 11
Bahir Barak is on a distinguished road
Question I need a macro, who can help me?

Hello!

I need a macro which starts with Word, when ever I open it,
the macro should create two MS Word Documents for me in E: Drive, or the file names may be (file01.doc) and (file02.doc)
the macro should have also two shortcut keys (Cntrl + D) and (Cntrl + H)

When I am working on an MS Word Document, for example it has 300 pages, I am editing this file, that is some words which I am replacing them with some another ones,
now I want from this macro whenever I select a word and press (Cntrl + D) the selected word should automatically adds to (file01.doc) on E: Drive, and when I select a word and press (Cntrl + H) the selected word should automatically adds to (file02.doc) on E: Drive....
everyone of these words which are added to those two files (file01.doc) and (file02.doc), should be in separate row or line.
_______________________

now if the creation of two document files is a problem in macro so I will create it with these names and paths: (E:\file01.doc) and (E:\file02.doc).
Now the second part of macro is left, selecting text and adding it to those two files by pressing two keys, if they become (Cntrl + D) and (Cntrl + H) so that will be ery good, and I by myself can't do that, because I don,t have experience in VBA,
so thanks very very much fore any brother who had resolved my this problem.
thanks
Reply With Quote