Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2010, 10:44 PM
SCNN SCNN is offline Creating macros Windows XP Creating macros Office 2007
Novice
Creating macros
 
Join Date: May 2010
Posts: 1
SCNN is on a distinguished road
Default Creating macros

Hi.



Does anyone know of some good tutorials for creating simple macros in Word 2007?

Thanks.
Reply With Quote
  #2  
Old 06-02-2010, 02:31 AM
mike.smith mike.smith is offline Creating macros Windows XP Creating macros Office 2007
Advanced Beginner
 
Join Date: May 2010
Posts: 67
mike.smith is on a distinguished road
Default

The best tutorial is to try it yourself.

There are two ways of how to create macro.

You can either program it or you can "click" it out.
Just Record new macro and you can click and click.

Use some simple logic and you will see that it is easy.

mike
Reply With Quote
  #3  
Old 06-02-2010, 04:53 PM
Steve_D Steve_D is offline Creating macros Mac OS X Creating macros Microsoft Office 2004 for Mac
Advanced Beginner
 
Join Date: Dec 2009
Posts: 59
Steve_D is on a distinguished road
Default

Some advice re. recording your own macros:
1. Have your cursor where you want it before you begin recording. If your macro does something to selected text, make sure you select some text before you begin recording the macro.
2. Get to know the keyboard shortcuts for moving the cursor (e.g. Ctrl + right arrow goes to start of next word, Ctrl + down arrow goes to start of next paragraph, adding Shift key to these selects next word/paragraph). Word 'understands' these keystrokes as 'next word' or 'next paragraph'. If you use the mouse to move the cursor, Word only knows that you are going to a particular point on the page. This can be important if your macro involves moving text or going to a particular point before doing a command.

Start with some simple macros, e.g. to highlight some text in yellow.
1. Select some text.
2. View tab, Macros, Record Macro.
3. Give the macro a name (no spaces), e.g. HighlightYellow.
4. Click the Keyboard button and assign it a keyboard shortcut. I use Ctrl + Shift + Y (for yellow!).
5. Home tab, highlight, select yellow.
6. For good measure, right arrow to move the cursor so text is no longer selected.
7. View tab, Macros, Stop recording.

You should now be able to highlight text by selecting it and pressing Ctrl + Shift + Y.

You can do this in two parts. First, create the macro and make sure it's OK. Then assign a keyboard shortcut (or add it to a menu) using Customize in Word Options (via the Office button).
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
macros trancetheory Outlook 0 05-11-2010 09:31 AM
Creating macros Macros krdzal Excel 1 04-06-2010 07:43 AM
Macros in Word khamilton Word 0 11-22-2009 06:38 PM
Macros in Word Jehanzeb Word 0 11-12-2009 04:43 AM
Macros & Passwords paulrm906 Excel 0 03-04-2006 01:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:48 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