{"id":4510,"date":"2014-06-24T17:23:15","date_gmt":"2014-06-24T08:23:15","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4510"},"modified":"2014-06-25T11:06:25","modified_gmt":"2014-06-25T02:06:25","slug":"%e6%97%a5%e6%9c%ac%e8%aa%9e%e3%81%ae%e6%96%87%e6%b3%95%e4%b8%8a%e3%81%ae%e8%aa%a4%e3%82%8a%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","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4510","title":{"rendered":"\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"},"content":{"rendered":"<p><a href=\"\/\/www.ka-net.org\/blog\/?p=4508\" title=\"\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\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306e\u95a2\u9023\u3067\u3001\u4eca\u5ea6\u306f\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\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 ChkGrammaticalErrors()\r\n'\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\r\n  Dim rngGrammaticalError As Word.Range\r\n  Dim rngTmp As Word.Range\r\n  Dim ctl As Office.CommandBarControl\r\n  Dim i As Long, cnt As Long\r\n  Dim s As String\r\n  \r\n  Set rngTmp = Selection.Range\r\n  '\u6587\u6cd5\u4e0a\u306e\u8aa4\u308a\u3092\u5217\u6319\r\n  For Each rngGrammaticalError In ActiveDocument.GrammaticalErrors\r\n    Select Case rngGrammaticalError.LanguageID\r\n      '\u65e5\u672c\u8a9e\u306e\u307f\u51e6\u7406\r\n      Case wdJapanese\r\n        For i = 1 To Len(rngGrammaticalError.Text)\r\n          cnt = 0 '\u521d\u671f\u5316\r\n          rngGrammaticalError.Characters(i).Select\r\n          '\u4fee\u6b63\u5019\u88dc\u3092CommandBarControl\u304b\u3089\u53d6\u5f97\r\n          For Each ctl In Application.CommandBars(&quot;Grammar&quot;).Controls\r\n            '&#x5B;ID\u304c\u300c0\u300d\u306e\u3082\u306e = \u4fee\u6b63\u5019\u88dc]\u3068\u3057\u3066\u53d6\u5f97\r\n            If ctl.ID = 0 Then\r\n              If cnt &lt; 1 Then\r\n                s = ctl.Caption\r\n              Else\r\n                s = s &amp; &quot;,&quot; &amp; ctl.Caption\r\n              End If\r\n              cnt = cnt + 1\r\n            End If\r\n          Next\r\n          If cnt &gt; 0 Then Exit For\r\n        Next\r\n    End Select\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 rngGrammaticalError, s\r\n  Next\r\n  rngTmp.Select\r\nEnd Sub<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordGrammaticalErrors_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordGrammaticalErrors_01.jpg\" alt=\"WordGrammaticalErrors_01\" width=\"1125\" height=\"454\" class=\"alignnone size-full wp-image-4511\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordGrammaticalErrors_01.jpg 1125w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordGrammaticalErrors_01-300x121.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/WordGrammaticalErrors_01-1024x413.jpg 1024w\" sizes=\"auto, (max-width: 1125px) 100vw, 1125px\" \/><\/a><\/p>\n<h4>\u25a0 \u95a2\u9023Web\u30da\u30fc\u30b8<\/h4>\n<p><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>\u30fbWord\u3084Outlook\u3067\u4f7f\u7528\u3067\u304d\u308b\u300c\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u3068\u6587\u7ae0\u6821\u6b63\u300d\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u7d50\u679c\u3092VBA\u304b\u3089\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b<\/strong><br \/>\n<a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/vbajp\/thread\/74ea256d-8843-4596-b6ef-6c2f829d24f2\" title=\"Word\u3084Outlook\u3067\u4f7f\u7528\u3067\u304d\u308b\u300c\u30b9\u30da\u30eb\u30c1\u30a7\u30c3\u30af\u3068\u6587\u7ae0\u6821\u6b63\u300d\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\u7d50\u679c\u3092VBA\u304b\u3089\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308a\u307e\u3059\u304b\" target=\"_blank\">http:\/\/social.msdn.microsoft.com\/Forums\/ja-JP\/vbajp\/thread\/74ea256d-8843-4596-b6ef-6c2f829d24f2<\/a><br \/>\n<strong>\u30fb\u6587\u6cd5\u3068\u30b9\u30bf\u30a4\u30eb\u306e\u898f\u5247\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b (\u65e5\u672c\u8a9e)<\/strong><br \/>\n<a href=\"http:\/\/office.microsoft.com\/ja-jp\/HA010203200.aspx\" title=\"\u6587\u6cd5\u3068\u30b9\u30bf\u30a4\u30eb\u306e\u898f\u5247\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b (\u65e5\u672c\u8a9e)\" target=\"_blank\">http:\/\/office.microsoft.com\/ja-jp\/HA010203200.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u524d\u56de\u306e\u8a18\u4e8b\u306e\u95a2\u9023\u3067\u3001\u4eca\u5ea6\u306f\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\u308b\u30de\u30af\u30ed\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 Option Explicit Public Sub ChkGrammaticalErrors() &#8216;\u65e5\u672c [&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-4510","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-1aK","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4510","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=4510"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4510\/revisions"}],"predecessor-version":[{"id":4521,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4510\/revisions\/4521"}],"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=4510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}