I developed a solution for this issue and here it is.
A macro to put xxx at the right of the word.
Selection.Find.ClearFormatting
With Selection.Find
.Text = "?"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True...
OK, let's try this again.
Before macro is run
"In every attempt, one must] take risks. Being able to take risks must be learned from the experience of not only succeeding but also of failing. To learn to fail and come back again is an incredible life lesson."
After macro is run
"In every...
Well, shoot. I was trying to color the words blue in the above post and then show how the xxx and zzz tags are to be inserted before and after the blue words when the macro is run. I am sure Tek Tips has a way of letting the users edit but I cannot find it.
Thank you skip for the code. As I indicated in the first post, I need to find groups of text in blue, not just individual characters or even individual words. The blue characters to be found would be like words that are underlined in the following passage.
Before macro is run
"In every...
I have a library of e-documents I need to convert to another format. In each of the documents I have words in blue font. The groups of blue words can be any length, from 1 word up to 100 words or more. I need a way to loop a vba word macro so the macro selects the groups of blue words and puts a...
OK, I got it working. I took out all of the Selection.Find.Execute lines except in the last part of the code. Here is the working code.
Sub FindSpaceDashSpace2Bold()
'
' FindSpaceDashSpace2Bold Macro
'
Selection.Find.ClearFormatting
Do
Selection.Find.Font.Bold = False
With...
Yes, skip I tried everything. Perhaps I should have posted all the failures but for the sake brevity, I left them out of the initial post. Who wants to see what does not work?
OK, after much experimentation I need help on making this modified recorded macro stop executing when the macro reaches the bottom of the Word file. Currently, the macro runs continuously without stopping. Thank you in advance for any replies.
Sub FindSpaceDashSpace2Bold()
'
'...
Thank you for the suggestions. Both work fine. I am doing document conversions going from non-Word format, to Word format, to Excel, to MySql. This is why one "cannot imagine" why I am doing what I am doing. :)
Thank you again for the help
I want to make the following MS Word macros loop and stop at either the top of the file or the bottom of the file. Thank you in advance for your replies.
-----------------------------------
Macro 1
'
'This macro does not stop when the bottom of file is reached. I want this macro to stop...
cLFlaVA, thank you again for the help. Is is possible to add a second button and make the iteration go backward in the list instead of forward. Thank you again.
Excellent, cLFlaVA. Yes, the code works. Thank you very much.
Keywords: javascript, iterate through a list with javascript, display a list item by item
Thank you for the post. I pasted in your div id tag exactly as you wrote the tag. First, I pasted the div id in above the script tag, below the script tag, and inside the tags. In every case I still get an error. I am using FP so all I get is the standard error screen with no way to track down...
Thank you for the above posts. The code is producing an error but I do not know how to troubleshoot or fix the issue. Can you look at the code and try to determine the cause of the issue?
How can I iterate through the variables below and display only one sentence on the screen at a time, using a button onclick event to trigger the display of the sentence. As the code is written now, all four sentences display on the screen at one time and there is no button.
Thank you in advance...
Jeff, thank you. You are correct. In my effort to illustrate, I substituted variable names for real values. My mistake in posting. However, results or output are the same and the issue remains unsolved.
Thank you for your interest and the posts...
OK, here you go..
Searching for the strings with a comma in the string using phpMyAdmin...
SELECT * FROM ViewNew WHERE LOCATE(',', `References`) > 0 AND LOCATE('". 30 Spindle 10: . "', `References`) > 0 AND ". 10 ." BETWEEN...
As always, I tried pasting the LOCATE statement in phpMyAdmin and got no errors. The troublesome LOCATE statements are posted at the top of this thread.
DRJ478...
Thank you for the post. Can you help me by explaining how your suggestion regarding the switch statement relates to the purpose of the thread...i.e., debugging the LOCATE statement?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.