Ray McCarthy
Sentient Marmite: The Truth may make you fret.
You need an MSWord document for Smashwords.
They'll fail it if it has "hidden bookmarks".
These can appear without you adding them!
Note: There is NO REASON AT ALL why you'd want ANY kind of bookmarks in a Word document for publisher / agent / ebook / POD etc. They are not the same thing as anchors or hyperlinks.
1) You put Word Generated TOC (Contents page) for CreateSpace or draft print or other reason.
2) You delete it for eBook file, as page numbers make no sense, CreateSpace wants a list of hyperlinked contents. Unfortunately MS Word leaves behind "hidden" bookmarks.
You often can't see them in other programs!
You usually have to go to Insert Bookmark, untick hidden, tick hidden etc to see them and delete one at a time. Tedious!
MS Support suggests this may be a bug and offers the following VB code you can add to normal.dot using the built in Visual Basic editor. You only need to add Method 2:
Copy and paste including Sub to End Sub and save.
They'll fail it if it has "hidden bookmarks".
These can appear without you adding them!
Note: There is NO REASON AT ALL why you'd want ANY kind of bookmarks in a Word document for publisher / agent / ebook / POD etc. They are not the same thing as anchors or hyperlinks.
1) You put Word Generated TOC (Contents page) for CreateSpace or draft print or other reason.
2) You delete it for eBook file, as page numbers make no sense, CreateSpace wants a list of hyperlinked contents. Unfortunately MS Word leaves behind "hidden" bookmarks.
You often can't see them in other programs!
You usually have to go to Insert Bookmark, untick hidden, tick hidden etc to see them and delete one at a time. Tedious!
MS Support suggests this may be a bug and offers the following VB code you can add to normal.dot using the built in Visual Basic editor. You only need to add Method 2:
Copy and paste including Sub to End Sub and save.
Code:
Method 1: Code to Strip All Bookmarks from a Document
Sub StripAllBookmarks()
Dim stBookmark As Bookmark
ActiveDocument.Bookmarks.ShowHidden = True
If ActiveDocument.Bookmarks.Count >= 1 Then
For Each stBookmark In ActiveDocument.Bookmarks
stBookmark.Delete
Next stBookmark
End If
End Sub
Method 2: Code to Strip Only Hidden Bookmarks from a Document
Sub StripHiddenBookmarks()
Dim stBookmark As Bookmark
ActiveDocument.Bookmarks.ShowHidden = True
If ActiveDocument.Bookmarks.Count >= 1 Then
For Each stBookmark In ActiveDocument.Bookmarks
If Left(stBookmark, 1) = "_" Then
stBookmark.Delete
End If
Next stBookmark
End If
End Sub
Method 3: Code to Add a Hidden Bookmark
The following code adds a bookmark named "_HiddenBookmark1" to a document at the location of the insertion point or selection.
Sub AddHiddenBookmark
ActiveDocument.Bookmarks.Add Name:="_HiddenBookmark1"
End Sub