{"id":3221,"date":"2015-08-28T07:37:36","date_gmt":"2015-08-27T22:37:36","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3221"},"modified":"2015-08-28T07:37:36","modified_gmt":"2015-08-27T22:37:36","slug":"cellcomment","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/cellcomment\/","title":{"rendered":"\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a\uff08Comments, Comment, AddComment, ClearComment\uff09"},"content":{"rendered":"<h2>\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a<\/h2>\n<div class=\"m30-l\">\n<p>\u30bb\u30eb\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u65b0\u898f\u306b\u633f\u5165\u3059\u308b\u306b\u306f\u3001<strong>AddComment \u30e1\u30bd\u30c3\u30c9<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u633f\u5165\u3055\u308c\u305f\u30b3\u30e1\u30f3\u30c8\u306b\u3001\u6587\u5b57\u5217\u3092\u8ffd\u52a0\u3001\u5909\u66f4\u3057\u305f\u308a\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664\u3057\u305f\u308a\u3059\u308b\u306b\u306f\u3001<strong>Comment \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u5185\u306e\u30b3\u30e1\u30f3\u30c8\u5168\u4f53\u3092\u64cd\u4f5c\u3059\u308b\u306b\u306f\u3001<strong>Comments \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<br \/>\n<h2>AddComment \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u6307\u5b9a\u3055\u308c\u305f\u30bb\u30eb\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>AddComment<\/strong> ( [ text ] )<\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>\u30bb\u30eb\uff08Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>text&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30b3\u30e1\u30f3\u30c8\u306e\u6587\u5b57\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u3059 <strong>Comment \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u3059\u3067\u306b\u30b3\u30e1\u30f3\u30c8\u304c\u6709\u308b\u30bb\u30eb\u306b\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e8b\u524d\u306b\u3001<strong>TypeName \u95a2\u6570<\/strong> \u7b49\u3092\u4f7f\u3063\u3066\u3001\u30b3\u30e1\u30f3\u30c8\u304c\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u3000<br \/>\n      \u3000\u3000If TypeName ( ActiveCell.Comment ) = &#8220;Nothing&#8221; Then<br \/>\n      \u3000\u3000\u3000\u3000\u3000\u3000ActiveCell.AddComment.Text &#8220;\u30b3\u30e1\u30f3\u30c8\u633f\u5165&#8221;<br \/>\n      \u3000\u3000End If<br \/>\n\u3000<br \/>\n      \u203b <strong>TypeName ( ActiveCell.Comment )<\/strong>\u3000\u3067\u3001\u30b3\u30e1\u30f3\u30c8\u304c\u633f\u5165\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001<strong>&#8220;Comment&#8221;<\/strong> \u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u8fd4\u308a\u307e\u3059\u3002\n    <\/p>\n<\/p><\/div>\n<\/div>\n<br \/>\n<h2>ClearComment \u30e1\u30bd\u30c3\u30c9<\/h3>\n<div class=\"m30-l\">\n<p>\u6307\u5b9a\u3055\u308c\u305f\u30bb\u30eb\u7bc4\u56f2\u304b\u3089\u3059\u3079\u3066\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u6d88\u53bb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>ClearComment<\/strong><\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Comment \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<br \/><\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Comment<\/strong><\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<em>object<\/em> \u3067\u6307\u5b9a\u3057\u305f\u30bb\u30eb\u7bc4\u56f2\u306e\u5de6\u4e0a\u7aef\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u3059 <strong>Comment \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h4>Comment \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li><strong>Comment.Delete<\/strong><br \/>\n\t\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\u3000<\/li>\n<li><strong>Comment.Next<\/strong><br \/>\n\t\u6b21\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u3059 <strong>Comment \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u30011 \u3064\u306e\u30b7\u30fc\u30c8\u3060\u3051\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u30b7\u30fc\u30c8\u306e\u6700\u5f8c\u306e\u30b3\u30e1\u30f3\u30c8\u3067\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001<strong>Null \u5024<\/strong>\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<br \/>\u3000<\/li>\n<li><strong>Comment.Previous<\/strong><br \/>\n\t\u524d\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u3059 <strong>Comment \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306f\u30011 \u3064\u306e\u30b7\u30fc\u30c8\u3060\u3051\u3067\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u30b7\u30fc\u30c8\u306e\u6700\u521d\u306e\u30b3\u30e1\u30f3\u30c8\u3067\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001<strong>Null \u5024<\/strong>\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<br \/>\u3000<\/li>\n<li><strong>Comment.Text<\/strong> ( [ <em>text<\/em>, <em>start<\/em>, <em>overwrite<\/em> ] )<br \/>\n\t\u30b3\u30e1\u30f3\u30c8\uff08\u6587\u5b57\u5217\u578b\uff1aString\uff09\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t<em>text<\/em>\uff1a\u8ffd\u52a0\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<br \/>\n\t<em>start<\/em>\uff1a\u6587\u5b57\u5217\u3092\u914d\u7f6e\u3059\u308b\u6587\u5b57\u306e\u4f4d\u7f6e\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u30b3\u30e1\u30f3\u30c8\u306e\u65e2\u5b58\u306e\u6587\u5b57\u5217\u306f\u524a\u9664\u3055\u308c\u307e\u3059\uff08\u7701\u7565\u53ef\uff09\u3002<br \/>\n\t<em>overwrite<\/em>\uff1a<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u65e2\u5b58\u306e\u6587\u5b57\u5217\u304c\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<strong>False<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u65e2\u5b58\u306e\u6587\u5b57\u5217\u306b\u6307\u5b9a\u3057\u305f\u6587\u5b57\u5217\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u65e2\u5b9a\u5024\u306f\u3001<strong>False<\/strong>\uff08\u7701\u7565\u53ef\uff09\u3002<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h4>Comment \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e3b\u306a\u30d7\u30ed\u30d1\u30c6\u30a3<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li><strong>Comment.Visible<\/strong> = <em>boolean<\/em><br \/>\n\t\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8868\u3059\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5024\u306e\u53d6\u5f97\u304a\u3088\u3073\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\t<em>boolean<\/em>\uff1a\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u3001<strong>True<\/strong> \u3092\u6307\u5b9a\u3001\u975e\u8868\u793a\u306b\u3059\u308b\u5834\u5408\u3001<strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\u3000<\/li>\n<li><strong>Comment.Shape<\/strong><br \/>\n\t\u30b3\u30e1\u30f3\u30c8\u306b\u7d50\u5408\u3055\u308c\u308b\u56f3\u5f62\u3092\u8868\u3059 <strong>Shape \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t\u203b \u56f3\u5f62\u3092\u9078\u629e\u3059\u308b\u5834\u5408\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u793a\u3057\u305f\u72b6\u614b\u306b\u3057\u307e\u3059\uff08 <strong>Comment.Visible \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> = <strong>True<\/strong> \uff09\u3002\u975e\u8868\u793a\u306e\u72b6\u614b\u3067\u9078\u629e\u3059\u308b\u3068\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Comments \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n  <br \/><\/p>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Comments<\/strong><\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u623b\u308a\u5024&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u6307\u5b9a\u3055\u308c\u305f\u30b7\u30fc\u30c8\u5185\u306e\u5168\u3066\u306e\u30b3\u30e1\u30f3\u30c8\uff08Comments \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff09\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h4>Comment \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e3b\u306a\u30e1\u30bd\u30c3\u30c9<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li><strong>Comments.Item<\/strong> ( <em>index<\/em> )<br \/>\n\t\u5358\u4e00\u306e <strong>Comment \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\t<em>index<\/em>\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30b7\u30fc\u30c8\u5185\u306e\u5404\u30b3\u30e1\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/><br \/>\n<h4>Comment \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u4e3b\u306a\u30d7\u30ed\u30d1\u30c6\u30a3<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li><strong>Comments.Count<\/strong><br \/>\n\t\u30b7\u30fc\u30c8\u5185\u306e\u30b3\u30e1\u30f3\u30c8\u6570\u3092\u8868\u3059\u9577\u6574\u6570\u578b\uff08Long\uff09\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b 1<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b 1\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample01_Comment()\r\n    \r\n    With Range(\"B2\")\r\n    \r\n        '\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u5224\u5b9a\r\n        If TypeName(.Comment) = \"Nothing\" Then\r\n        \r\n            '\u300cB2\u300d\u30bb\u30eb\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u633f\u5165\r\n            .AddComment.Text \"\u30b3\u30e1\u30f3\u30c8\u3067\u3059\uff01\uff01\"\r\n            \r\n        End If\r\n        \r\n        '\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\r\n        .Comment.Text vbLf & \"\u8ffd\u52a0\u306e\u30c6\u30ad\u30b9\u30c8\", Len(.Comment.Text)\r\n    \r\n    End With\r\n        \r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?ssl=1\" rel=\"lightbox[3221]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=400%2C228&#038;ssl=1\" alt=\"\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a\u3000\u4f7f\u7528\u4f8b01\" width=\"400\" height=\"228\" class=\"alignnone size-medium wp-image-3230\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=400%2C228&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=580%2C331&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?w=613&amp;ssl=1 613w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n<h2>\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b 2<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a \u4f7f\u7528\u4f8b 2\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample02_Comment()\r\n\r\n    '\u30b3\u30e1\u30f3\u30c8\u3092\u5168\u3066\u524a\u9664\r\n    Cells.ClearComments\r\n    \r\n    With Range(\"B3\").AddComment\r\n        \r\n        '\u300cB3\u300d\u30bb\u30eb\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u633f\u5165\r\n        .Text \"\u65b0\u898f\u306e\u30b3\u30e1\u30f3\u30c8\u633f\u5165\uff01\uff01\"\r\n        \r\n        '\u30b3\u30e1\u30f3\u30c8\u306e\u56f3\u5f62\u3092\u5909\u66f4\uff08 MsoAutoShapeType \u5217\u6319\u578b \uff09\r\n        .Shape.AutoShapeType = msoShapeExplosion1\r\n                        \r\n        '\u30b3\u30e1\u30f3\u30c8\u8868\u793a\r\n        .Visible = True\r\n    \r\n    End With\r\n    \r\n    \r\n    \r\n    '\u300cB6\u300d\u30bb\u30eb\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u633f\u5165\r\n    Range(\"B6\").AddComment.Text \"\u65b0\u3057\u3044\u30b3\u30e1\u30f3\u30c8\uff01\uff01\"\r\n    \r\n    \r\n    \r\n    With Range(\"B10\")\r\n    \r\n        '\u300cB6\u300d\u30bb\u30eb\u306b\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u633f\u5165\r\n        .AddComment.Text \"\uff13\u756a\u76ee\u306e\u30b3\u30e1\u30f3\u30c8\u4f5c\u6210\"\r\n        \r\n        '\u3053\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u975e\u8868\u793a\r\n        .Comment.Visible = False\r\n        \r\n        '\u3053\u308c\u306e\u524d\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u975e\u8868\u793a\r\n        .Comment.Previous.Visible = False\r\n    \r\n    End With\r\n    \r\n    \r\n    \r\n    '\u30b7\u30fc\u30c8\u4e0a\u306e3\u756a\u3081\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u793a\r\n    ActiveSheet.Comments.Item(3).Visible = True\r\n    \r\n    \r\n    \r\n    '\u30b7\u30fc\u30c8\u4e0a\u306e\u5404\u30b3\u30e1\u30f3\u30c8\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\r\n    Dim str As String, i As Long\r\n    \r\n    For i = 1 To ActiveSheet.Comments.Count\r\n    \r\n        str = str & i & \"\uff1a\" & ActiveSheet.Comments(i).Text & vbLf\r\n    \r\n    Next i\r\n    \r\n    MsgBox str\r\n        \r\n\r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>Find \u30e1\u30bd\u30c3\u30c9\uff08\u30b3\u30e1\u30f3\u30c8\u306e\u691c\u7d22\uff09\u4f7f\u7528\u4f8b \u5b9f\u884c\u7d50\u679c<\/h3>\n<p>\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\u5b9f\u884c\u524d<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?ssl=1\" rel=\"lightbox[3221]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=400%2C228&#038;ssl=1\" alt=\"\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a\u3000\u4f7f\u7528\u4f8b01\" width=\"400\" height=\"228\" class=\"alignnone size-medium wp-image-3230\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=400%2C228&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?resize=580%2C331&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01.jpg?w=613&amp;ssl=1 613w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u5f8c<\/p>\n<p><a href=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment02.jpg?ssl=1\" rel=\"lightbox[3221]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment02.jpg?resize=400%2C205&#038;ssl=1\" alt=\"\u30b3\u30e1\u30f3\u30c8\u306e\u633f\u5165\u3000\u4f7f\u7528\u4f8b02\" width=\"400\" height=\"205\" class=\"alignnone size-medium wp-image-3231\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment02.jpg?resize=400%2C205&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment02.jpg?resize=580%2C298&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment02.jpg?w=754&amp;ssl=1 754w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u30b3\u30e1\u30f3\u30c8\u306e\u8a2d\u5b9a \u30bb\u30eb\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u65b0\u898f\u306b\u633f\u5165\u3059\u308b\u306b\u306f\u3001AddComment \u30e1\u30bd\u30c3 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3407,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[523,521,522,270,63,311,38,269],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/08\/cellcomment01-400x2281.jpg?fit=400%2C228&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-PX","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3221"}],"collection":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/comments?post=3221"}],"version-history":[{"count":13,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3221\/revisions"}],"predecessor-version":[{"id":3408,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3221\/revisions\/3408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3407"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}