View Single Post
Old 01-10-2007, 10:00 AM   #35
Aprilbeginnings
Guru
Aprilbeginnings has a complete set of Star Wars action figures.Aprilbeginnings has a complete set of Star Wars action figures.Aprilbeginnings has a complete set of Star Wars action figures.Aprilbeginnings has a complete set of Star Wars action figures.Aprilbeginnings has a complete set of Star Wars action figures.
 
Aprilbeginnings's Avatar
 
Posts: 632
Karma: 404
Join Date: Nov 2006
Location: Southern CA
Device: Sony PRS-500 /prs 650 soon
Quote:
Originally Posted by HarryT
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.
Oh oh, something is not working for me. I get this error

Compile Error:
Only comments may appear after End Sub, End function or end property.

Guess I just don't understand
Aprilbeginnings is offline   Reply With Quote