Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

Insert Text Left of Bulleted Style

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Foley - 01 Feb 2005 18:33 GMT
Hey Gang,

I am trying to enter some text against the left hand side margin on lines
that use either bulleted or numbered styles.  I couldn't figure a way to
enter it simply by typing so I tried inserting a text box of the necessary
size to hold the letters "[C]".  However the old code that I am working from
(WordBasic) seems to want to move the box up slightly and not on the same
line as the paragraph I want it on.

Does anyone know of a way to place text to the left of a bulleted or
numbered style or have some code that works.  What I had on a previous
template was a text box converted to a frame that actually put it in the
left hand margin (had a 2" margin to simulate a two-column document).  That
one worked fine I guess because there was enough room from the textbox and
the actual text.  This one however doesn't seem to like it on the same line.

Any solutions out there?  I would be happy to post the code I was using if
that would help.  By the way, using Word XP.

TIA!

Signature

Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor - XP
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
Check out Word FAQs at: http://word.mvps.org/FAQs/General/index.htm

G.G.Yagoda - 01 Feb 2005 18:57 GMT
No code necessary. Type the letter "C" against the margin and follow it
with a LISTNUM field. The field will substitute for the numbered or
bulleted style and increment the numbering as if you used the style.

Caveat: by itself, the LISTNUM field is always at the mercy of the last
numbered or bulleted style that comes immediately before it.  If you
have a level 4 number preceding the LISTNUM field and you need a level
2 number, for example, then you have to add the level switch as
follows:

( LISTNUM \L 2 )

Although the LISTNUM field will produce a bullet if it follows one, it
would probably be safer to use a bullet symbol instead from the Insert
> Symbol menu.  That way, the bullet is guaranteed to remain a bullet,
even if the paragraph preceding it is changed from a bulleted to a
numbered style in the course of editing.

The LISTNUM field will look exactly like the numbering style, but
formatting and indentation have to be supplied by you.
Bill Foley - 01 Feb 2005 22:30 GMT
Thanks, G.G., but I am looking for an automated way to be able to click a
toolbar icon (macro) that will put [C] at the left hand margin regardless of
the type or level of style.  Anyone tried this before?  I have been able to
accomplish this when I needed a small checkbox via code by setting the
parameters and location of the box, but I can't seem to get the small
textbox to stay directly to the left.  It always wants to push the text on
that line slightly down.

TIA!

Signature

Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
"Success, something you measure when you are through succeeding."

> No code necessary. Type the letter "C" against the margin and follow it
> with a LISTNUM field. The field will substitute for the numbered or
[quoted text clipped - 16 lines]
> The LISTNUM field will look exactly like the numbering style, but
> formatting and indentation have to be supplied by you.
Charles Kenyon - 02 Feb 2005 00:17 GMT
How about AutoText in a Frame or TextBox. You can put the AutoText entry on
a toolbar button or menu item.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> Thanks, G.G., but I am looking for an automated way to be able to click a
> toolbar icon (macro) that will put [C] at the left hand margin regardless
[quoted text clipped - 26 lines]
>> The LISTNUM field will look exactly like the numbering style, but
>> formatting and indentation have to be supplied by you.
Bill Foley - 02 Feb 2005 03:26 GMT
Tried that also Charles, but I need it to force the entry at the left hand margin.  I want to be able to put it on numbered or bulleted lines (built-in styles in my template).  Sort of like having something to the left of the bullet.  Right now when I create the textbox (or frame) it is forcing the line I want it on to move down and the [C] is on its own line.  I need it to stay on the same line.  For example, I might have the following:

[C]   1.       Line 1
       2.      Line 2
[C]            (bulleted list)

I would like to be able to do this without having to turn off the numbered/bulleted lists and just typing the number or inserting the symbol.

THANKS!

Signature

Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
"Success, something you measure when you are through succeeding."

> How about AutoText in a Frame or TextBox. You can put the AutoText entry on
> a toolbar button or menu item.
[quoted text clipped - 28 lines]
>>> The LISTNUM field will look exactly like the numbering style, but
>>> formatting and indentation have to be supplied by you.
Chuck - 02 Feb 2005 13:47 GMT
If you're not using text boxes, then perhaps you might have to use columns or
put the numbered list items in a table with the left hand column blank (to
accommodate your [C]s?

> Tried that also Charles, but I need it to force the entry at the left hand margin.  I want to be able to put it on numbered or bulleted lines (built-in styles in my template).  Sort of like having something to the left of the bullet.  Right now when I create the textbox (or frame) it is forcing the line I want it on to move down and the [C] is on its own line.  I need it to stay on the same line.  For example, I might have the following:
>
[quoted text clipped - 38 lines]
> >>> The LISTNUM field will look exactly like the numbering style, but
> >>> formatting and indentation have to be supplied by you.
Charles Kenyon - 02 Feb 2005 16:31 GMT
Float the text box before you create the AutoText entry. Position it
relative to the paragraph in which it is anchored.
Signature


Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

Tried that also Charles, but I need it to force the entry at the left hand
margin.  I want to be able to put it on numbered or bulleted lines (built-in
styles in my template).  Sort of like having something to the left of the
bullet.  Right now when I create the textbox (or frame) it is forcing the
line I want it on to move down and the [C] is on its own line.  I need it to
stay on the same line.  For example, I might have the following:

[C]   1.       Line 1
       2.      Line 2
[C]            (bulleted list)

I would like to be able to do this without having to turn off the
numbered/bulleted lists and just typing the number or inserting the symbol.

THANKS!

Signature

Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
"Success, something you measure when you are through succeeding."

"Charles Kenyon" <msnewsgroup@remove.no.spam.addbalance.com> wrote in
message news:%23AX67xLCFHA.2288@TK2MSFTNGP14.phx.gbl...

> How about AutoText in a Frame or TextBox. You can put the AutoText entry
> on
[quoted text clipped - 31 lines]
>>> The LISTNUM field will look exactly like the numbering style, but
>>> formatting and indentation have to be supplied by you.
Bill Foley - 02 Feb 2005 17:11 GMT
Thanks, Charles.  I was able to record a macro that almost gave me what I
was looking for, except it always wants to put it in the same position
(based on where my cursor was when I recorded the macro.  I am going to go
through the code this afternoon and see what attributes I can change to
always put it on the paragraph I am on when I run the macro.  I tried making
it "Inline", but that would put the textbox inside of a bulleted or numbered
style and I want it always at the left-hand margin.

Here is the recorded macro in case anyone can see the obvious.  Thanks
again!

'=====Code Starts Here=====

Sub Commitment()
'
' Commitment Macro
' Macro recorded 2/2/2005 by Bill Foley
'
   ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 90#, _
       72.75, 21#, 19.5).Select
   Selection.ShapeRange.TextFrame.TextRange.Select
   Selection.Collapse
   Selection.TypeText Text:="[C]"
   Selection.ShapeRange.TextFrame.TextRange.Select
   Selection.Collapse
   Selection.ShapeRange.Select
   Selection.ShapeRange.Line.Visible = msoFalse
   Selection.ShapeRange.LockAspectRatio = msoTrue
   Selection.ShapeRange.Height = 14.4
   Selection.ShapeRange.Width = 18#
   Selection.ShapeRange.Left = 90#
   Selection.ShapeRange.Top = 72.7
   Selection.ShapeRange.TextFrame.MarginLeft = 0#
   Selection.ShapeRange.TextFrame.MarginRight = 0#
   Selection.ShapeRange.TextFrame.MarginTop = 0#
   Selection.ShapeRange.TextFrame.MarginBottom = 0#
   Selection.ShapeRange.RelativeHorizontalPosition = _
       wdRelativeHorizontalPositionMargin
   Selection.ShapeRange.RelativeVerticalPosition = _
       wdRelativeVerticalPositionParagraph
   Selection.ShapeRange.Left = wdShapeLeft
   Selection.ShapeRange.Top = InchesToPoints(0)
   Selection.ShapeRange.LockAnchor = True
   Selection.ShapeRange.WrapFormat.AllowOverlap = True
   Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
   Selection.ShapeRange.WrapFormat.DistanceTop = InchesToPoints(0)
   Selection.ShapeRange.WrapFormat.DistanceBottom = InchesToPoints(0)
   Selection.ShapeRange.WrapFormat.DistanceLeft = InchesToPoints(0)
   Selection.ShapeRange.WrapFormat.DistanceRight = InchesToPoints(0)
   Selection.ShapeRange.WrapFormat.Type = 3
   Selection.ShapeRange.ZOrder 4
   Selection.ShapeRange.TextFrame.AutoSize = False
   Selection.ShapeRange.TextFrame.WordWrap = False
End Sub

'=====Code Stops Here=====

Signature

Bill Foley, Microsoft MVP (PowerPoint)
Microsoft Office Specialist Master Instructor - XP
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
Check out Word FAQs at: http://word.mvps.org/FAQs/General/index.htm

> Float the text box before you create the AutoText entry. Position it
> relative to the paragraph in which it is anchored.
[quoted text clipped - 49 lines]
> >>> The LISTNUM field will look exactly like the numbering style, but
> >>> formatting and indentation have to be supplied by you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.