Results 1 to 9 of 9
  1. #1
    New Lounger
    Join Date
    Jul 2003
    Location
    Olmsted Falls, Ohio, USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macros (Word 2000)

    I'm trying to create a macro signature using italic style and for some reason when I finish the macro and hit the toolbar button, the signature comes up regular type. How do I save this in italic only?????????????? I've read the Dummies 2000 book on macros and they don't mention how to save certain styles of type. Am I missing something here? This should be a simple task. No? <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Macros (Word 2000)

    'm not quite sure what you mean by a Macro here. It sounds like you may have come from a Word Perfect environment and be looking for WP Macros.

    If you want formatted text to be saved so you can reinsert it in other places then you should use Word's Autotext feature. Create your formatted text, select it and then choose Insert > Autotext > New (or Alt-F3). To use this Autotext type the first 4 characters - this will display a popup menu with the text - now type F3, or a TAB character.

    StuartR

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Macros (Word 2000)

    There are many ways to insert text into a document (or e-mail message, if you mean that kind of signature). Some will preserve formatting and some will blend right in.

    Stuart's suggestion to use AutoText lets you insert a very rich set of Word objects, from text to graphics, to boxes, and so forth. You can record a macro of Inserting AutoText. Make sure your macro has the parameter RichText:=True at the end of the Insert command.

    If you prefer to have your macro "type" the text into the document, I think you can turn Italics on and off like this (please check the exact syntax, I haven't tested this):

    Selection.Font.Italics = true
    Selection.TypeText "Love and Kisses Always, " & vbcrlf & vbcrlf & "Me"
    Selection.Font.Italics = false

    And there are other ways, too, but either of these should get you where you want to go.

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macros (Word 2000)

    Just one additional clarification. When you get the signature the way you want & follow Stuart's advice about creating an autotext entry, make sure that you select the paragraph mark that follows the signature, as well as the signature. This will insure that the formatting is kept. If you can't see the paragraph mark (backwards P), either click the Show/Hide button on the Formatting toolbar (the one with the backwards P), or go to Tools/Options/View tab & put a check by hidden text.

    Alternatively, you can format the signature the way you want, then click inside the style box on the formatting toolbar, type a name for the new style (like "signature" w/o quotes), & press <enter>.
    Hope this helps,

  5. #5
    New Lounger
    Join Date
    Jul 2003
    Location
    Olmsted Falls, Ohio, USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macros (Word 2000)

    Thank you for your help, this is the problem, I'm not a wiz at Word in any way, shape or form. I am a med. assistant and my doctor wants 2 sigs. for notes. One is his name, the other is the office name italicized. I can do this by making a macro sig. but the problem is that it won't save the italic when I make the macro. When I hit the icon I make for the Associate name it is in regular type instead of italics. I can make it italic if I hit the italic button 1st then hit the macro symbol. What I don't understand is, if I'm hitting the italic button 1st before I even begin the steps in creating the macro sig, then why doesn't Word automatically use that type when I finish and hit my macro icon button on the toolbar?

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Macros (Word 2000)

    If you are using the Macro Recorder, record the step of turning on Italics. Otherwise, the first step is simply to type using the same font that would be used if you typed it manually (i.e., not italicized). If you are recording that step but it isn't working, could you copy and paste your macro code here for review?

  7. #7
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Macros (Word 2000)

    I don't think you need to be using a macro to do this. What about creating the text exactly as you want to see it, selecting it and then adding it as an autotext entry. Once this is done, you can type part of the autotext name and press F3 to get the result or add a button on a toolbar to do the same.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  8. #8
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Macros (Word 2000)

    Phil,

    I thought that you only needed to select the Paragraph mark if you wanted to preserve Paragraph formatting (indents, line spacing etc.). When I tested this with italics it behaved the way I expected even without the paragraph mark selected.

    StuartR

  9. #9
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macros (Word 2000)

    Thanks, Stuart. You are quite right! The font attributes can be applied without selecting the paragraph mark. I guess was thinking of a paragraph style since font characteristics can either be direct, character style, or paragraph style. Selecting the paragraph mark as part of the autotext entry would only be necessary to preserve the paragraph style...but also puts in an extra paragraph mark.
    Cheers,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •