View Single Post
  #3 (permalink)  
Old 07-27-2007, 12:56 PM
Barzillai Barzillai is offline
Junior Member
 
Join Date: Jun 2007
Posts: 2
Default Return to cursor location

Thank you for the information. In answer to your question, I never want to insert the text at the end of the mail window or at any fixed position in relation to the open window or at an absolute location like the bottom or top of a document. Instead, the location for insertion of the clipboard text is usually between lines of text which location changes each time I run the macro.

If I understand your suggestion, you suggest using keystrokes (like down arrow? or returns?) to go to a particular location in a text document. I do not understand how this will help because the location at which the macro will insert the clipboard text needs to change each time the macro is run because my cursor location will change. And I think using keystrokes will return me to the same location each time — something I do not want to do. Or more directly, what keystokes tell the macro to start where my cursor is when the cursor location changes each time the macro is run?

For example, the best description of where I want the clipboard text to appear is where I last had my cursor as I was writing/editing the document.

For example, to help me understand the problem, I opened any MS word document that has text. I want the macro to insert a clipboard text at whatever location my cursor happens to be. I made a simple test macro that just types the word “HERE.” When I replay the macro, the macro inserts the text in the location on the screen where the cursor was when I made the macro. But, for example, the next time I run the macro I want the text to be inserted on a different screen and at a lower location on the screen, near the bottom of the screen (just as an for example), ie where my cursor is, but the macro inserts the text where the cursor was (in relation to the open screen) when I made the macro.

The actual macro is designed to paste the clipboard which is created by opening a file with unchanging text, by adding the date and time to the file text, then copying the unchanging text and the new date and time to the clipboard. After pasting the clipbaord, the macro goes to the address portion of the mail and inserts different text. I want to be able to be writing an email and then insert the clipboard wherever my cursor is at the start of the macro. Although the macro is designed for my AOL mail, in my test macro I have the same problem trying to insert the word “HERE” into an MS Word file at the location of my cursor.

I think I am missing some simple concept. Thanks for any help for a real novice at this.

Last edited by Barzillai : 07-27-2007 at 01:02 PM.
Reply With Quote