{"id":4508,"date":"2014-06-24T16:33:39","date_gmt":"2014-06-24T07:33:39","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4508"},"modified":"2014-06-25T11:05:54","modified_gmt":"2014-06-25T02:05:54","slug":"%e8%8b%b1%e8%aa%9e%e3%81%ae%e3%82%b9%e3%83%9a%e3%83%ab%e3%83%9f%e3%82%b9%e3%82%92%e5%88%97%e6%8c%99%e3%81%97%e3%81%a6%e4%bf%ae%e6%ad%a3%e5%80%99%e8%a3%9c%e3%82%92%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4508","title":{"rendered":"\u82f1\u8a9e\u306e\u30b9\u30da\u30eb\u30df\u30b9\u3092\u5217\u6319\u3057\u3066\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308bWord\u30de\u30af\u30ed"},"content":{"rendered":"<p>Document\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eSpellingErrors\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u30b9\u30da\u30eb\u30df\u30b9\u3068\u3057\u3066\u8b58\u5225\u3055\u308c\u308b\u5358\u8a9e\u3092\u53d6\u5f97\u3067\u304d\u3001Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eGetSpellingSuggestions\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u4fee\u6b63\u5019\u88dc\u3092\u53d6\u5f97\u3067\u304d\u308b\u306e\u3067\u3001\u82f1\u8a9e\u306e\u30b9\u30da\u30eb\u30df\u30b9\u3092\u5217\u6319\u3057\u3066\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u30de\u30af\u30ed\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub ChkSpellingErrors()\r\n'\u82f1\u8a9e\u306e\u30b9\u30da\u30eb\u30df\u30b9\u3092\u5217\u6319\u3057\u3066\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308bWord\u30de\u30af\u30ed\r\n  Dim rngSpellingError As Word.Range\r\n  Dim ssgn As Word.SpellingSuggestion\r\n  Dim s As String\r\n  Dim cnt As Long\r\n  \r\n  '\u30b9\u30da\u30eb\u30df\u30b9\u3092\u5217\u6319\r\n  For Each rngSpellingError In ActiveDocument.SpellingErrors\r\n    cnt = 0 '\u521d\u671f\u5316\r\n    Select Case rngSpellingError.LanguageID\r\n      '\u82f1\u8a9e\u306e\u307f\u51e6\u7406\r\n      Case wdEnglishUS\r\n        '\u4fee\u6b63\u5019\u88dc\u53d6\u5f97\r\n        For Each ssgn In rngSpellingError.GetSpellingSuggestions\r\n          If cnt &lt; 1 Then\r\n            s = ssgn.Name\r\n          Else\r\n            s = s &amp; &quot;,&quot; &amp; ssgn.Name\r\n          End If\r\n          cnt = cnt + 1\r\n        Next\r\n        '\u30a8\u30e9\u30fc\u7b87\u6240\u306b\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\r\n        ActiveDocument.Range.Comments.Add rngSpellingError, &quot;\u4fee\u6b63\u5019\u88dc\uff1a&quot; &amp; s\r\n    End Select\r\n  Next\r\nEnd Sub<\/pre>\n<h4>\u25a0 \u95a2\u9023Web\u30da\u30fc\u30b8<\/h4>\n<p><strong>\u30fb\u65e5\u672c\u8a9e\u306e\u6587\u6cd5\u4e0a\u306e\u8aa4\u308a\u3092\u5217\u6319\u3057\u3066\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308bWord\u30de\u30af\u30ed<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/blog\/?p=4510\" title=\"\u65e5\u672c\u8a9e\u306e\u6587\u6cd5\u4e0a\u306e\u8aa4\u308a\u3092\u5217\u6319\u3057\u3066\u4fee\u6b63\u5019\u88dc\u3092\u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308bWord\u30de\u30af\u30ed\" target=\"_blank\">\/\/www.ka-net.org\/blog\/?p=4510<\/a><br \/>\n<strong>\u30fbGetSpellingSuggestions\u30e1\u30bd\u30c3\u30c9\u3067\u6587\u6cd5\u4e0a\u306e\u8aa4\u308a\u306e\u4fee\u6b63\u5019\u88dc\u306f\u53d6\u5f97\u3067\u304d\u306a\u3044\uff1f<\/strong><br \/>\n<a href=\"\/\/www.ka-net.org\/blog\/?p=4517\" title=\"GetSpellingSuggestions\u30e1\u30bd\u30c3\u30c9\u3067\u6587\u6cd5\u4e0a\u306e\u8aa4\u308a\u306e\u4fee\u6b63\u5019\u88dc\u306f\u53d6\u5f97\u3067\u304d\u306a\u3044\uff1f\" target=\"_blank\">\/\/www.ka-net.org\/blog\/?p=4517<\/a><br \/>\n<strong>\u30fbWikipedia:Lists of common misspellings &#8211; Wikipedia, the free encyclopedia<\/strong><br \/>\n<a href=\"http:\/\/en.wikipedia.org\/wiki\/Wikipedia:Lists_of_common_misspellings\" title=\"Wikipedia:Lists of common misspellings - Wikipedia, the free encyclopedia\" target=\"_blank\">http:\/\/en.wikipedia.org\/wiki\/Wikipedia:Lists_of_common_misspellings<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Document\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eSpellingErrors\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u30b9\u30da\u30eb\u30df\u30b9\u3068\u3057\u3066\u8b58\u5225\u3055\u308c\u308b\u5358\u8a9e\u3092\u53d6\u5f97\u3067\u304d\u3001Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eGetSpellingSuggestions\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u4fee\u6b63\u5019\u88dc\u3092\u53d6\u5f97\u3067\u304d\u308b\u306e [&hellip;]","protected":false},"author":1,"featured_media":7134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":[4,49],"tags":[],"class_list":["post-4508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-word-office"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Word.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1aI","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4508"}],"version-history":[{"count":4,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4508\/revisions"}],"predecessor-version":[{"id":4520,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4508\/revisions\/4520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7134"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}