Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-16-2011, 04:19 AM
ACA ACA is offline Calling for an action when typing a character Windows 7 Calling for an action when typing a character Office 2007
Advanced Beginner
Calling for an action when typing a character
 
Join Date: Aug 2010
Posts: 31
ACA is on a distinguished road
Default

Thank you Paul.
No, it’s not something Word’s AutoText can do. It’s this:
I do translations. For that I keep two Word documents open, Doc.1 (on which I type my translation) and Doc.2 (with the original). My macro does this:
- It goes to the original text, picks a chunk, say15 words, and pastes that on my doc.1.
- When I’ve translated that chunk (by overtyping the original) I execute the macro again and it goes, picks the next 15 words and adds them to my doc.1, and so on.
- Besides, on the original Doc.2, it turns a different color the part of the text already done, so if I need to check something it is easy for my eyes to fall near the spot I’ve reached. Here’s the code:


Code:
 
    Windows("Doc.2").Activate
    Selection.MoveRight Unit:=wdWord, Count:=15, Extend:=wdExtend
    Selection.Copy
    Selection.Font.Color = wdColorBlue
    Selection.MoveRight Unit:=wdCharacter, Count:=1
 
    Windows("Doc.1").Activate
    Selection.PasteAndFormat (wdPasteDefault)
    Selection.MoveLeft Unit:=wdWord, Count:=15
    Overtype = Overtype
What I would like is for that macro (or any other I may think of in the future) to be called automatically by juust entering a given single character in my doc.1.
Thank you again for your interest.
ACA
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link an action on one slide on a powerpoint with the same action on another slevinmj PowerPoint 0 02-24-2011 05:38 AM
Re-Calling Sent Email freschij Outlook 1 12-06-2010 09:16 PM
Change Action Setting Path gskelton PowerPoint 0 02-27-2010 03:20 PM
calling images with a button sammer021486 PowerPoint 0 01-13-2010 08:24 AM
Highlighted Selection on Action Settings mos7sad PowerPoint 0 10-12-2009 07:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:47 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft