View Single Post
Old 11-29-2006, 08:43 AM   #18
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Hi valkyriesound,

Proceed as follows. These instructions are for Word 2002, but other versions of Word work pretty much the same way:

1. Run Word.
2. Select the "Tools/Macro/Record New Macro" menu item. This will give you a dialog box into which you can type the macro name. Call it, for example, "FormatEBook".
3. Select the "Tools/Macro/Stop Recording" menu item. You now have an "empty" macro called "FormatEBook.
4. Select the "Tools/Macro/Macros" menu item, select the "FormatEBook" macro, and click the "Edit" button. This will open the VB editor on the macro, which will start with a line saying "Sub FormatEBook()", have a couple of comment lines beginning with a single quote, and finish with the line "End Sub".
5. Copy the text of the book formatting macro from the previous page, and press "Ctrl+C" to copy it to the clipboard. Go back to the VB editor, position the cursor on the line underneath the "Sub FormatEBook()" line, and press "Ctrl+V" to paste the text into the macro.
6. Click the "Save" button, then close the VB editor.

Now, all you have to do is simply load a text file into Word, and then select "Tools/Macro/Macros". Double click the "FormatEBook" macro to run it.

Hope that helps.
HarryT is offline   Reply With Quote