Microsoft Word Macro or Advice
Microsoft Word Macro or Advice
(OP)
I am still a novice user here - I am using Windows 10 on a PC and using Microsoft Word 365. I am a retired preacher and trying to write bible studies and here is my dilemma:
The word "Lord" or "LORD" is used in the Bible quite often, of course. I have found myself typing the word "LORD" and then going back and selecting the "ORD" in the word and choosing a smaller font so that it appears with a large "L" and small "ORD", or selecting the "L" and making it bigger by about 50% so the letters "ORD" remain the size font I am typing in. I sometimes write using different fonts or different size fonts. So, what I'm asking is this: can a MACRO be made so that before I type the word lord, I would hit my MACRO or turn the MACRO on, type the word lord and it will automatically capitalize all four letters as I type them and make the first letter larger in proportion to the rest of the word (perhaps 50% larger). I would then turn off the MACRO off. I would not want the MACRO to stay on as there are of course other times when "lord" is used in all lower case or "Lord". I will also sometimes copy a Bible text from my Logos Bible Software and pasted it in my writing, but still have to select the letters and change the font size. I've been doing this for years but it does slow me down when I'm on a roll in writing and have to stop to change the way "LORD" is supposed to appear. Only a Bible student would understand the difference in the meaning of "LORD" vs. "lord." Can you help me or give me a better solution.
Thanks in advance,
Bob Lankford
The word "Lord" or "LORD" is used in the Bible quite often, of course. I have found myself typing the word "LORD" and then going back and selecting the "ORD" in the word and choosing a smaller font so that it appears with a large "L" and small "ORD", or selecting the "L" and making it bigger by about 50% so the letters "ORD" remain the size font I am typing in. I sometimes write using different fonts or different size fonts. So, what I'm asking is this: can a MACRO be made so that before I type the word lord, I would hit my MACRO or turn the MACRO on, type the word lord and it will automatically capitalize all four letters as I type them and make the first letter larger in proportion to the rest of the word (perhaps 50% larger). I would then turn off the MACRO off. I would not want the MACRO to stay on as there are of course other times when "lord" is used in all lower case or "Lord". I will also sometimes copy a Bible text from my Logos Bible Software and pasted it in my writing, but still have to select the letters and change the font size. I've been doing this for years but it does slow me down when I'm on a roll in writing and have to stop to change the way "LORD" is supposed to appear. Only a Bible student would understand the difference in the meaning of "LORD" vs. "lord." Can you help me or give me a better solution.
Thanks in advance,
Bob Lankford
RE: Microsoft Word Macro or Advice
The LORD said unto my Lord, Sit thou at my right hand, until I make thine enemies thy footstool.
Just to be clear. In cases where the typed result is all caps, as in the translation of YHWH, you want to be able to change the capital font size of all but the leading character. But is the case of Lord you don't? I know that's how the type was set for the Schofield Reference Bible, mine from when we had BRoadway as our telephone exchange code, as written by my mother on the flyleaf.
BTW, you can SELECT the entire word and SHIFT+F3 to cycle thru sever capitalization options.
Skip,
for a NUance!
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
RE: Microsoft Word Macro or Advice
CODE
---- Andy
There is a great need for a sarcasm font.
RE: Microsoft Word Macro or Advice
RE: Microsoft Word Macro or Advice
Find = L[Oo][Rr][Dd]
Replace = Lord
and you set the replacement font to 'small caps'.
Or, as a macro:
CODE
If you really want to increase the font size as well simply add:
.Replacement.Font.Size = 15
before:
.Format = True
where the '15' is the preferred font size.
Cheers
Paul Edstein
[MS MVP - Word]
RE: Microsoft Word Macro or Advice
Bob
RE: Microsoft Word Macro or Advice
I like what your Macro does, and it works fine when you open the Macro and click "Run". However, nothing happens when I use the shortcut "Alt L" or "Alt D". Am I missing something? I've even tried starting the Macro Record over and assigning the keyboard shortcut "Alt L" and "Alt D" but they still won't run the Macro. Am I forgetting something? Please advise.
Bob
RE: Microsoft Word Macro or Advice
But what you CAN do is – in Word, start Macro Recorder, at the beginning you will be asked to provide a name for this Macro, and at the same time you may establish a keyboard shortcut to your Macro. Then do a few keystrokes, and stop the Macro Recorder. Then you can go to the code of that Macro (Alt-F11) and replace the code generated with the code I gave you between Sub Macro1 and End Sub. Then you will have your new macro with the keyboard shortcut you specified.
Give it a try, learn something new, you will love it.
You may want to see this - how to Assigning a Shortcut Key to a Macro
---- Andy
There is a great need for a sarcasm font.
RE: Microsoft Word Macro or Advice
Thank you so very much.
Bob
RE: Microsoft Word Macro or Advice
---- Andy
There is a great need for a sarcasm font.
RE: Microsoft Word Macro or Advice
CODE
Font.Size = Font.Size * 1.5