ShyChiWriter
Experienced
- Joined
- Aug 25, 2009
- Posts
- 109
Hey all,
This has taken longer than expected - but I finally think I've got a decent macro for preparing work you've written in Microsoft Word to get ready for submission.
INTENDED AUDIENCE: People who prefer writing in Microsoft Word.
I've written this in Word 2003. I'm guessing it will work in Word 2007, and possibly earlier versions - but I've only tested it out in 2003.
PURPOSE: To allow you to write utilizing bold, underline, and italic in Microsoft Word and then export it easily with Cut and Paste into the story submission form.
SUPPOSITIONS: It is generally good form to have written your document with two hard returns between each paragraph.
INSTRUCTIONS:
You'll be brought into a code screen and your cursor will be where I've put the smiley face
Sub SubmitReady()
'
' SubmitReady Macro
' Macro created 6/21/2010 by Your Name
'

End Sub
**********************************************************
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Italic = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Italic = wdToggle
Selection.InsertBefore "<i>"
Selection.InsertAfter "</i>"
Loop
' Bold text surrounded by <b> </b>
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Bold = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Bold = wdToggle
Selection.InsertBefore "<b>"
Selection.InsertAfter "</b>"
Loop
' underline text surrounded by <u> </u>
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Underline = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Underline = wdUnderlineNone
Selection.InsertBefore "<u>"
Selection.InsertAfter "</u>"
Loop
**************************************************************
Your macro is now saved in your normal document (that's your base document).
CAUTION: Before you run this ALWAYS save your work. I HIGHLY recommend using the 'save as' feature and saving it as 'Story -marked up' or something, so you are working in an entirely different doc.
Now, when you are ready to run the macro:
Your doc should now be plain text with <i><b>, and <u> (and their closing codes) around the text that was italic, bold and underline.
If this proves helpful - you can always assign this macro to a set of keys like ctrl-alt-g (for go) or something.
You should now be able to cut and paste the document into the story submission form. The nice thing is, the form allows you to preview your story and see how it should be formatted. Be sure and do so to spot weird characters, centered text, etc.
Again, be sure and save your file in advance!
I hope this proves helpful. If anyone else out there is a code jockey (which I'm certainly not), feel free to make suggestions, improvements, etc.
This has taken longer than expected - but I finally think I've got a decent macro for preparing work you've written in Microsoft Word to get ready for submission.
INTENDED AUDIENCE: People who prefer writing in Microsoft Word.
I've written this in Word 2003. I'm guessing it will work in Word 2007, and possibly earlier versions - but I've only tested it out in 2003.
PURPOSE: To allow you to write utilizing bold, underline, and italic in Microsoft Word and then export it easily with Cut and Paste into the story submission form.
SUPPOSITIONS: It is generally good form to have written your document with two hard returns between each paragraph.
INSTRUCTIONS:
- In Microsoft Word
- Tools
- Macro
- Macros
- Under Macro Name - type in SubmitReady
- Click Create
You'll be brought into a code screen and your cursor will be where I've put the smiley face
Sub SubmitReady()
'
' SubmitReady Macro
' Macro created 6/21/2010 by Your Name
'
End Sub
- Now - paste in the code between the two lines of astrisks below into where your cursor is - right above End Sub
**********************************************************
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Italic = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Italic = wdToggle
Selection.InsertBefore "<i>"
Selection.InsertAfter "</i>"
Loop
' Bold text surrounded by <b> </b>
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Bold = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Bold = wdToggle
Selection.InsertBefore "<b>"
Selection.InsertAfter "</b>"
Loop
' underline text surrounded by <u> </u>
Selection.HomeKey Unit:=wdStory
Do
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Font.Underline = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
If Selection.Find.Found = False Then
Exit Do
End If
Selection.Font.Underline = wdUnderlineNone
Selection.InsertBefore "<u>"
Selection.InsertAfter "</u>"
Loop
**************************************************************
- Click on File
- Save Normal
- Click on File
- Close and Return to Microsoft Word
Your macro is now saved in your normal document (that's your base document).
CAUTION: Before you run this ALWAYS save your work. I HIGHLY recommend using the 'save as' feature and saving it as 'Story -marked up' or something, so you are working in an entirely different doc.
Now, when you are ready to run the macro:
- Tools
- Macro
- Macros
- Select SubmitReady
- Click Run
Your doc should now be plain text with <i><b>, and <u> (and their closing codes) around the text that was italic, bold and underline.
If this proves helpful - you can always assign this macro to a set of keys like ctrl-alt-g (for go) or something.
You should now be able to cut and paste the document into the story submission form. The nice thing is, the form allows you to preview your story and see how it should be formatted. Be sure and do so to spot weird characters, centered text, etc.
Again, be sure and save your file in advance!
I hope this proves helpful. If anyone else out there is a code jockey (which I'm certainly not), feel free to make suggestions, improvements, etc.