macro for hidden paragraph

H

Huaqin

i need help please,
i created a macro to do hidden paragraph. i highlight the paragraph mark,
format, font, check the box hidden, make the color red. the macro did not
run, don't know why, can you help, the following is the recorded macro:

Sub HiddenParagraph()
'
' HiddenParagraph Macro
' Macro recorded 11/16/2006 by OWNER
'
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
With Selection.Font
.NameFarEast = "Times New Roman"
.NameAscii = "Times New Roman"
.NameOther = "Times New Roman"
.Name = "Times New Roman"
.Size = 12
.Bold = False
.Italic = False
.Underline = wdUnderlineNone
.UnderlineColor = wdColorAutomatic
.StrikeThrough = False
.DoubleStrikeThrough = False
.Outline = False
.Emboss = False
.Shadow = False
.Hidden = True
.SmallCaps = False
.AllCaps = False
.Color = wdColorRed
.Engrave = False
.Superscript = False
.Subscript = False
.Spacing = 0
.Scaling = 100
.Position = 0
.Kerning = 0
.Animation = wdAnimationNone
.DisableCharacterSpaceGrid = False
.EmphasisMark = wdEmphasisMarkNone
End With
Selection.MoveRight Unit:=wdCharacter, Count:=1
End Sub
 
J

Jean-Guy Marcil

Huaqin was telling us:
Huaqin nous racontait que :
i need help please,
i created a macro to do hidden paragraph. i highlight the paragraph

All you need (besides love) is this:

Selection.Paragraphs(1).Font.Hidden = True

Or, to toggle between hidden and not hidden:

Selection.Paragraphs(1).Font.Hidden = Not
Selection.Paragraphs(1).Font.Hidden

mark, format, font, check the box hidden, make the color red. the
macro did not run, don't know why, can you help, the following is the

What do you mean?
When did it not run?
How did you try to make it run?
recorded macro:

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
H

Huaqin

more precisely, i saved this recorded macro in abc.dot file which is also
part of Word's Startup, macro in abc.dot didn't work,. If i save the same
macro in normal.dot which it works. any idead, please.

steps on macro, highlight the para mark, click Format>Font, select Hidden,
Red color in the Font dialog box.
 
J

Jean-Guy Marcil

Huaqin was telling us:
Huaqin nous racontait que :
more precisely, i saved this recorded macro in abc.dot file which is
also part of Word's Startup, macro in abc.dot didn't work,. If i
save the same macro in normal.dot which it works. any idead, please.

"didn't work" does not mean anything to someone reading a post in a
newsgroup.

How did you record it exactly?
What did you do to make it available?
How did you try to execute it?
What were the results?

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top