{"id":210,"date":"2004-09-08T12:00:00","date_gmt":"2004-09-08T12:00:00","guid":{"rendered":"http:\/\/editorium.com\/archive\/?p=210"},"modified":"2013-10-25T23:10:21","modified_gmt":"2013-10-25T23:10:21","slug":"style-macros","status":"publish","type":"post","link":"https:\/\/editorium.com\/archive\/style-macros\/","title":{"rendered":"Style Macros"},"content":{"rendered":"<p>The August 18 issue of Editorium Update featured a macro to delete styles that exist in a Word document but are not used in that document. While I was writing that macro, I also wrote a couple of others that I thought you might find useful.<\/p>\n<p>The first macro, ListCustomStyles, lists (at the end of the document) any custom styles in that document. If you need to know what weird styles your client is using, this macro will tell you what they are.<\/p>\n<p>The second macro, ListStylesInUse, lists (at the end of the document) any style being used in that document.<\/p>\n<p>If you don't know how to use macros like these, you can learn how here:<\/p>\n<p>http:\/\/lists.topica.com\/lists\/editorium\/read\/message.html?mid=1706922855<\/p>\n<p>And now, here are the macros. Enjoy!<\/p>\n<pre><span style=\"color: black; font-family: Courier New; font-size: small;\">\nSub ListCustomStyles()\nFor Each sty In ActiveDocument.Styles\nIf sty.BuiltIn = False Then\nSelection.EndKey Unit:=wdStory\nSelection.InsertAfter Text:=sty.NameLocal\nSelection.InsertParagraphAfter\nEnd If\nNext sty\nEnd Sub\nSub ListStylesInUse()\nFor Each sty In ActiveDocument.Styles\nIf sty.InUse = True Then\nSelection.HomeKey Unit:=wdStory\nSelection.Find.ClearFormatting\nSelection.Find.Style = ActiveDocument.Styles(sty)\nWith Selection.Find\n.Text = \"\"\n.Replacement.Text = \"\"\n.Forward = True\n.Wrap = wdFindStop\n.Format = True\n.MatchCase = False\n.MatchWholeWord = False\n.MatchWildcards = False\n.MatchSoundsLike = False\n.MatchAllWordForms = False\nEnd With\nSelection.Find.Execute\nIf Selection.Find.Found = True Then\nSelection.EndKey Unit:=wdStory\nSelection.InsertAfter Text:=sty.NameLocal\nSelection.InsertParagraphAfter\nEnd If\nEnd If\nNext sty\nEnd Sub\n<\/pre>\n<p><\/span><\/p>\n<p>_________________________________________<\/p>\n<p>READERS WRITE<\/p>\n<p>In the August 11 issue, Francelia Sevin wrote:<\/p>\n<p>\"On my Mac in Word 2001, toggling the track changes on\/off doesn't work. I still cannot copy and paste text and include the tracked changes. I  have upgraded with the latest patches for 2001 and that hasn't made any difference.\"<\/p>\n<p>I asked for help with this, and Hilary Powers responded:<\/p>\n<p>That sounds like the PC Word 97 tracking-copy bug, alive and well in Mac Word 2001. If so, the PC workaround--bookmarking the material and  inserting it in its new spot (with tracked changes turned off in the receiving document)--should work just fine. To move something in the  same document, save the bookmarked file under a different name, then reopen the active file and turn off tracking, insert the bookmarked  passage from the copy, and delete it from its original location. Then turn the tracking on again, and you're back in business.<\/p>\n<p>--------------------------------------<\/p>\n<p>Karen Bojda responded to the same question:<\/p>\n<p>Well, there's the workaround I learned about on CE-L, but for some reason I think you already know about this one \ud83d\ude09<\/p>\n<p>https:\/\/listserv.indiana.edu\/cgi-bin\/wa-iub.exe?A2=ind0208E&L=copyediting-l&P=R613<\/p>\n<p>\"This is a known 'issue' (bug) in Word 97\/98. It's been fixed in Word 2000 and higher. A workaround is to insert the text (Insert > File) into the new document rather than paste it. If you don't want to insert the whole doc, you can bookmark just the part you need and then enter the name of the bookmark into the 'Range' box of the Insert dialog.\"<\/p>\n<p>I can confirm that this works in Word 98 on the Mac. You have to save a copy of the file under a different name, since Word won't let you insert a file (or even a bookmarked part of a file) into itself. It might be a cumbersome workaround, but I've used it and been grateful to know about it.<\/p>\n<p>--------------------------------------<\/p>\n<p>A more detailed explanation of how to do this is provided in the March 24 issue of Editorium Update:<\/p>\n<p>http:\/\/lists.topica.com\/lists\/editorium\/read\/message.html?mid=1716395972<\/p>\n<p>Many thanks to Hilary and Karen.<\/p>\n<\/p>\n<p>_________________________________________<\/p>\n<p>RESOURCES<\/p>\n<p>Copernic Desktop Search is a powerful (and free!) file indexing and search engine for Windows computers. The website says:<\/p>\n<p>\"Easily search your entire hard drive in less than a second to pinpoint the right file, e-mail, music or pictures.<\/p>\n<p>\"CDS brings the power of a sophisticated, yet easy-to-use search engine right to your PC and allows you instantly to search files, e-mails, and email attachments stored anywhere on your PC hard drive. It executes sub-second searching of Microsoft Word, Excel, and PowerPoint files, Acrobat PDFs, and all popular music, picture and video formats. CDS also searches your browser history, favorites, and contacts.\"<\/p>\n<p>http:\/\/www.copernic.com\/index.html<\/p>\n<p>Thanks to Keith Soltys for bringing this program to my attention. If you're a Mac user and know of a similar program for Macintosh, please let me know.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/editorium.com\/archive\/style-macros\/\" rel=\"bookmark\" title=\"Permalink to Style Macros\"><p>The August 18 issue of Editorium Update featured a macro to delete styles that exist in a Word document but are not used in that document. While I was writing that macro, I also wrote a couple of others that I thought you might find useful. The first macro, ListCustomStyles, lists (at the end of [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":{"0":"post-210","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-editing","7":"h-entry","8":"hentry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3gfno-3o","_links":{"self":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":2,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":754,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/210\/revisions\/754"}],"wp:attachment":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/media?parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/categories?post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/tags?post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}