Formatting problems
#11
Posted 06 December 2011 - 01:25 PM
#12
Posted 06 December 2011 - 01:29 PM
#13
Posted 06 December 2011 - 01:46 PM
Normally, if you were doing search/replace macros or other commands, you would just record the macro. 99% of the time that works. Because you wanted something inserted that's not on the clipboard, we have to manually define the macro. You just need to get to the macro edit screen. Create should do it. Just replace the newly created sample macro code with my code.
#14
Posted 06 December 2011 - 01:53 PM
Thanks, Josh!
#15
Posted 06 December 2011 - 02:40 PM
Another way to get rid of text you don't want that is formatted the same is Highlight it right click then select text with similar formatting and all of the same text say all bold text will highlight then press delete
also this could be used to change the text formatting to something else
Edited by DSaw, 06 December 2011 - 02:41 PM.
May God change our hearts to what the truth is
2Ti_2:15 Study to shew thyself approved unto God, a workman that needeth not to be ashamed, rightly dividing the word of truth.
Rom_9:16 So then it is not of him that willeth, nor of him that runneth, but of God that sheweth mercy.
#16
Posted 06 December 2011 - 03:21 PM
I recorded a macro that does a lot of regular expression search and replacements. I have edited it here and there and it's working great. I'm having to run it on certain chapters and I have to change the replacement text in several places before I can run it each time. Mostly Im changing out bible book names. I'm worried with me manualy editing macro each time sooner or later i will make a mistake and then I'll have made a mess of my text. When I run my macro, can MS Word 'ask' me the name of a bible book? And then have my answer appear in the macro instead of me editing the macro?
#17
Posted 06 December 2011 - 03:58 PM
Here's some code from one of my macros I'm currently using on a project. I've removed some of the text to make it a simple example to get you started
BookName = InputBox("Book Name") '...Text omitted for the purposes of an easy example... .Replacement.Text = "÷" + BookName
The purple text creates a variable called BookName. The InputBox causes Word to popup an input box where you can enter the value. The value you enter will be stored in BookName. (Gotta love Visual Basic, how much easier could this be?)
So you want the Bible book name you enter to be used in your replacement text? Just refer to the BookName variable in your replacement text. You should be familar with the .Replacement.Text command from your recorded macro.
Keep your literal replacement text in quotes (as it already is). And break up your replacement text so that where you've been editing the Book name manually, the BookName variable will now appear. Don't put Bookname in quotes. But do use + signs. If you have literal replacement text to go to the right of BookName, just enter a + sign to the right of BookName, followed by the literal replacement text in quotes.
In the example above: ÷ (in quotes so Word knows its a literal) and + BookName (no quotes because its a variable). So if you entered "Matthew" into the input box, then the replacement would be: ÷Matthew. Easy enough.
word_input_box.png 16.28K 0 downloads
#18
Posted 06 December 2011 - 06:10 PM
I just looked up word macros and visual basic and you can just about write a tooltipping program in MS Word!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
Similar Topics
Formatting New Bible translation for use in eswordStarted by Guest_DocStu_* , 20 Mar 2024 |
Copy and Paste into Word including text formatting.Started by Guest_elkillian_* , 30 Sep 2022 |
having problems with windows 11Started by Guest_timothyng_* , 04 May 2022 |
Problems with e-Sword 13 and Wine on UbuntuStarted by Guest_johnx_* , 22 Apr 2021 |
Problems with e-Sword. Here is your primary help site.Started by Guest_JPG_* , 04 Dec 2021 |
Frequently Asked Questions
Latest Blogs
- 10 justifications for Bible reading
by SarahSherrill, Jun 27 2022 02:53 AM
According to the experts from Astros DigitalHere are ten reaso... - How can I fix the Cash App if it isn't Working?
by cashcardhelps, Jun 07 2022 01:12 AM
First, you must keep the app up to date with the most recent v... - How can an app benefit your pharmacy in growing business earnings
by Alteza, Jun 06 2022 03:14 AM
Apps comprise a large portion of the tech-driven society that... - What Is a Satire Essay Anyway?
by Caleb9, Jun 04 2022 08:22 AM
What Is a Satire Essay Anyway?A large number of professional w... - 25% OFF on Mauli Thread Rakhi Online for Brother
by giftsvalla, Jun 03 2022 02:02 AM
Mauli Rakhi are generally red. The red colour symbolizes stren...