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 2006

Tip: Looking for answers? Try searching our database.

macro help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 15 Feb 2006 14:01 GMT
I created a macro in bold type, the strange thing is that it only comes
out bold every other time! How do I resolve this..Thank you
Tony Jollans - 15 Feb 2006 14:54 GMT
If you want to give us a fighting chance of helping  you resolve it, you
show us the code.

My *guess* is that you have a line like this ..

   Selection.Font.Bold = Not Selection.Font.Bold

when you really want one like this ...

   Selection.Font.Bold = True

--
Enjoy,
Tony

> I created a macro in bold type, the strange thing is that it only comes
> out bold every other time! How do I resolve this..Thank you
David - 15 Feb 2006 15:53 GMT
Thank you Thank you Thank you
David - 16 Feb 2006 13:56 GMT
It did work but is there a way to make this a default setting so I do
not have to repeat this step every day? Thanks for the help!
Tony Jollans - 16 Feb 2006 14:46 GMT
We really need a bit more information. What exactly are you doing every day?

Can you post your code, and a bit more detail - I'm sure it can be sorted.

--
Enjoy,
Tony

> It did work but is there a way to make this a default setting so I do
> not have to repeat this step every day? Thanks for the help!
David - 17 Feb 2006 00:02 GMT
On my laptop (don't have it home), in Microsoft Word, I create a Macro,
in bold for the date as I need to dictate patient progress notes and
using the macro makes it easier. So each day I record a new Macro, in
bold, for the date. The problem is, unless I change (under macro edit)
Selection Font.Bold=True (and I need to do that manually), every other
time I press the macro keys it comes out plain type and not bold! I
hope this makes sense!
Cindy M  -WordMVP- - 20 Feb 2006 10:14 GMT
Hi David,

> On my laptop (don't have it home), in Microsoft Word, I create a Macro,
> in bold for the date as I need to dictate patient progress notes and
[quoted text clipped - 3 lines]
> time I press the macro keys it comes out plain type and not bold! I
> hope this makes sense!

So, you're requirement is a macro that inserts the current day's date and
formats it bold? Does this work for you?

Sub InsertTheDate()
   Dim rng as Word.Range

   Set rng = Selection.Range
   rng.Text = Format(Date, "mmmm d, yyyy")
   rng.Bold = True
End Sub

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
 
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.