PC Review


Reply
Thread Tools Rate Thread

Selecting before a character to make bold...

 
 
rohit92
Guest
Posts: n/a
 
      25th Oct 2009

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.
 
Reply With Quote
 
 
 
 
Stefan Blom
Guest
Posts: n/a
 
      25th Oct 2009

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" <(E-Mail Removed)> wrote in message
news:C8A472DA-2BBD-4D4C-AC85-(E-Mail Removed)...
> 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.




 
Reply With Quote
 
Graham Mayor
Guest
Posts: n/a
 
      26th Oct 2009

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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting a word before a character to make bold... rohit92 Microsoft Word New Users 2 26th Oct 2009 07:15 AM
Re: How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 0 3rd Mar 2009 08:56 PM
How to Make Bold a Command Button Bold If Related Table Has Data doyle60@aol.com Microsoft Access VBA Modules 1 3rd Mar 2009 07:26 PM
how do i make a sentence bold without making everything bold? =?Utf-8?B?ZHJib2IxMTI1?= Microsoft Word Document Management 1 15th Aug 2006 04:30 AM
Windows 2000 print Chinese character with bold same as not bold S. T. Wong Microsoft Windows 2000 0 3rd Mar 2004 03:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 PM.