Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-05-2020, 08:09 PM
Rayroshi Rayroshi is offline Can I write a macro in which I Use the Mouse? Windows 7 64bit Can I write a macro in which I Use the Mouse? Office 2003
Novice
Can I write a macro in which I Use the Mouse?
 
Join Date: May 2011
Posts: 21
Rayroshi is on a distinguished road
Default Can I write a macro in which I Use the Mouse?

Using Word 2007, I am trying to write a question bank that contains about 800 multiple-choice questions for my grandson, who is going to take the DMV driver license test.



Rather than having to repeatedly type a lot of the same cursor moves and other operations, such as indentations, spacing, etc., I want to make a macro to perform all of these keystrokes at once. This would save me a whole lot of time and trouble.

Setting the macro up is easy, at first; however, when it comes to the point of actually recording the sequence of keystrokes to be performed by the macro, I am stuck because I don't know how to move the cursor with the mouse to the point where, for example, I can select a portion of text to indent. I can see that the macro is recording by the fact that the little 'cassette' icon is visible, but when I try to move the cursor around my Word document, nothing happens, so I can't tell the macro where to go, in order to perform a function.

So my question is: Is it possible to move the cursor, in order to select a portion of the text by using the mouse? And, if not by using the mouse, then how is the insertion point selected?

Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 09-05-2020, 08:35 PM
Charles Kenyon Charles Kenyon is offline Can I write a macro in which I Use the Mouse? Windows 10 Can I write a macro in which I Use the Mouse? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You can use the arrow keys and the shift key or Home and End keys to move your cursor.


That said, take a look at, instead, using styles. See Question and Answer Styles for an example.
Reply With Quote
  #3  
Old 09-06-2020, 05:57 PM
Rayroshi Rayroshi is offline Can I write a macro in which I Use the Mouse? Windows 7 64bit Can I write a macro in which I Use the Mouse? Office 2003
Novice
Can I write a macro in which I Use the Mouse?
 
Join Date: May 2011
Posts: 21
Rayroshi is on a distinguished road
Default

Thanks for that helpful info, Charles! That worked.

Now how do you highlight the text, once you've place the cursor where you want it?
Reply With Quote
  #4  
Old 09-06-2020, 06:26 PM
Guessed's Avatar
Guessed Guessed is offline Can I write a macro in which I Use the Mouse? Windows 10 Can I write a macro in which I Use the Mouse? Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

To select text with the keyboard, you hold the shift key as you move with the arrow keys.
Some special 'selections' combine the Ctrl and Shift keys together
Ctrl-Shift-DownArrow to select to the end of the paragraph
Ctrl-Shift-RightArrow to select to next word end
Ctrl-Shift-HomeKey to select to top of document
Ctrl-Shift-EndKey to select to end of document
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 09-06-2020, 06:28 PM
Rayroshi Rayroshi is offline Can I write a macro in which I Use the Mouse? Windows 7 64bit Can I write a macro in which I Use the Mouse? Office 2003
Novice
Can I write a macro in which I Use the Mouse?
 
Join Date: May 2011
Posts: 21
Rayroshi is on a distinguished road
Default

Thanks, Andrew! That was just what I needed to know.

You guys are great!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I write a macro in which I Use the Mouse? How to write a macro for bolding text between quotes jwall Word VBA 3 12-09-2019 10:04 PM
How to write macro yoyo4 Excel Programming 1 11-19-2017 11:43 PM
Can I write a macro in which I Use the Mouse? Write a macro to change formulas Xyz_999 Excel 2 04-20-2016 10:40 PM
Can I write a macro in which I Use the Mouse? Write a macro to change formulas Xyz_999 Excel 1 04-20-2016 09:51 PM
How do you write a macro with an IF Function Scheuerman1987 Excel 5 06-05-2013 06:04 AM

Other Forums: Access Forums

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


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