A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Selecting before a character to make bold...



 
 
Thread Tools Display Modes
  #1  
Old October 25th, 2009, 05:32 PM posted to microsoft.public.word.newusers
rohit92
external usenet poster
 
Posts: 2
Default Selecting before a character to make bold...

Hey guys,
I think this might help me in the future, but I want to use something like
this for school. Say i have this text:
"dog- an animal that barks
cat- an animal that meows"

So what I want to do is select the words before the "-" to make them bold.
The words dog and cat should be bold. Sometimes i have very large lists to do
this with and it gets annoying to constantly select each word and make it
bold.. So let me know if it is possible.
  #2  
Old October 25th, 2009, 06:04 PM posted to microsoft.public.word.newusers
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default Selecting before a character to make bold...

If you hold the Alt key, you can use the mouse to select vertically.

Alternatively, you should be able to use Find and Replace.

--
Stefan Blom
Microsoft Word MVP



"rohit92" wrote in message
...
Hey guys,
I think this might help me in the future, but I want to use something like
this for school. Say i have this text:
"dog- an animal that barks
cat- an animal that meows"

So what I want to do is select the words before the "-" to make them bold.
The words dog and cat should be bold. Sometimes i have very large lists to
do
this with and it gets annoying to constantly select each word and make it
bold.. So let me know if it is possible.




  #3  
Old October 26th, 2009, 06:14 AM posted to microsoft.public.word.newusers
Graham Mayor
external usenet poster
 
Posts: 18,297
Default Selecting before a character to make bold...

Select the list and run the following macro:

Dim oRng As Range
For i = 1 To Selection.Paragraphs.Count
Set oRng = Selection.Paragraphs(i).Range
With oRng
.MoveEndUntil "-", wdBackward
.End = .End - 1
.Bold = True
End With
Next i

If there is no list selected, the macro operates on the paragraph containing
the cursor.

http://www.gmayor.com/installing_macro.htm


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



rohit92 wrote:
Hey guys,
I think this might help me in the future, but I want to use something
like this for school. Say i have this text:
"dog- an animal that barks
cat- an animal that meows"

So what I want to do is select the words before the "-" to make them
bold. The words dog and cat should be bold. Sometimes i have very
large lists to do this with and it gets annoying to constantly select
each word and make it bold.. So let me know if it is possible.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.