View Single Post
 
Old 08-19-2020, 08:22 PM
savvy savvy is offline Windows 10 Office 2016
Novice
 
Join Date: Aug 2020
Location: Toronto
Posts: 23
savvy is on a distinguished road
Default

Hi Charles and Gmayor,

Thanks for the code. Very kind of you to help. I will try it and get back to you.

I did try userform but being a beginner I found it hard to set up.

The sub above is one of 10 modules. Each sub is called by the first sub. Currently, the first sub is invoked with a quick acces bar icon. It takes a Dragon trascription text and removes things like an unformatted phrase example: plan to follow .. and replaces it with paragraph symbol, PLAN TO FOLLOW: space (underlined and bold), removes extra blank spaces, and extra paragraphs. I am sure a more elegant way to do this is with fields but as you surmised I really don't know vba coding.

I was able to write some macros in WPX3 but I want to learn VBA for word as a personal learning project. I am just finding the syntax impossible, especilly error handling and debug messages and the correction. Turns out I had an easier time "coding" in WPX3. I have not figured out how to add code to a sub on the flyin Word Macros, something which is helful in WordPerfect.

Dictating some phrases and having Dragon Naturally Speaking do this also difficult It is actually easier in word than in Dragon.

I am adding modules to find a list of text and replace each, in turn, with another text. I don't like how Dragon does this. This is challenging and I may ask for some help. So far I just use a sub for each word pair, a laborious enterprise when many word pairs correcting. I was hoping you could suggest a macro that I could integrate into my project.

One thing I am tryng to learn is to open a template or dotm and auto run all my subs consecutively. I think I must use a dotm template for that to work, but I am having no success with autonew. The last sub (preferably first sub) would ask for the client's name and rename the letter.dotm to the last name automatically.

In my project, I want to open a new doc.?dotm and run a macro to reassign the enter key in word to run a macro rather than using keyboard shortcut (like shft ctl F6). The first statements would be to re-enable the proper enter key functionality. This would avoid needing a userform and the tab key which is less intuitive for my secretary. Can I do this in word vba?

I realize this is a lengthy project but I already have most of the simple formatting tasks woriking. I appreciate the help in this forum. Thanks to everyone.

savvy (..evidently not so much).
Reply With Quote