{"id":4707,"date":"2014-08-07T09:46:54","date_gmt":"2014-08-07T00:46:54","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4707"},"modified":"2014-08-07T09:46:54","modified_gmt":"2014-08-07T00:46:54","slug":"%e3%82%bb%e3%83%ab%e5%86%85%e3%81%ae%e6%94%b9%e8%a1%8c%e3%82%92%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%99%e3%82%8bexcel%e3%83%9e%e3%82%af%e3%83%ad","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4707","title":{"rendered":"\u30bb\u30eb\u5185\u306e\u6539\u884c\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308bExcel\u30de\u30af\u30ed"},"content":{"rendered":"<p>\u300c<span style=\"color: #ff0000; font-weight: bold;\">Excel \u30bb\u30eb\u306e\u5185\u5bb9 \u6539\u884c\u3092\u6570\u3048\u308b VBA<\/span>\u300d\u3068\u3044\u3063\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e0b\u8a18\u30da\u30fc\u30b8\u306b\u3082\u3042\u308b\u3088\u3046\u306b\u3001Excel\u306f\u30bb\u30eb\u5185\u306e\u6539\u884c\u3092\u6587\u5b57\u30b3\u30fc\u30c9<span style=\"color: #ff0000; font-weight: bold;\"> LF (0A) <\/span>\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u30fb[XL2003] \u30bb\u30eb\u5185\u306e\u6539\u884c\u304c\u300c\u30fb\u300d\u4e2d\u70b9\u3067\u8868\u793a\u3055\u308c\u308b<\/strong><br \/>\n<a href=\"http:\/\/support.microsoft.com\/kb\/822372\/ja\" title=\"[XL2003] \u30bb\u30eb\u5185\u306e\u6539\u884c\u304c\u300c\u30fb\u300d\u4e2d\u70b9\u3067\u8868\u793a\u3055\u308c\u308b\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/822372\/ja<\/a><\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30bb\u30eb\u5185\u306e\u6539\u884c\u3092\u6570\u3048\u308b\u6642\u306fLF(vbLF)\u306e\u6570\u3092\u8abf\u3079\u308c\u3070\u826f\u3044\u308f\u3051\u3067\u3059\u3002<br \/>\n\u3088\u304f\u4f7f\u308f\u308c\u308b\u65b9\u6cd5\u3068\u3057\u3066\u306f\u3001Split\u95a2\u6570\u3092\u4f7f\u3063\u3066\u5bfe\u8c61\u3068\u306a\u308b\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u3001UBound\u95a2\u6570\u3092\u4f7f\u3063\u3066\u914d\u5217\u306e\u5927\u304d\u3055\u3092\u8abf\u3079\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Public Function COUNTLF(ByVal r As Excel.Range) As Long\r\n  COUNTLF = UBound(Split(r.Value, vbLf))\r\nEnd Function<\/pre>\n<p>\u30b3\u30fc\u30c9\u3068\u3057\u3066\u306f\u4e0a\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u306d\u3002<br \/>\n\u65e9\u901f\u52d5\u304d\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/COUNTLF_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/COUNTLF_01.jpg\" alt=\"COUNTLF_01\" width=\"209\" height=\"198\" class=\"alignnone size-full wp-image-4708\" \/><\/a><\/p>\n<p>\u3061\u3083\u3093\u3068\u76ee\u7684\u306e\u6539\u884c\u6570\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u306f\u3042\u304f\u307e\u3067\u3082\u6539\u884c(LF)\u3092\u6570\u3048\u308b\u3082\u306e\u3067\u3001\u6587\u5b57\u5217\u306e\u6298\u308a\u8fd4\u3057\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u305d\u306e\u70b9\u306f\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300cExcel \u30bb\u30eb\u306e\u5185\u5bb9 \u6539\u884c\u3092\u6570\u3048\u308b VBA\u300d\u3068\u3044\u3063\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u691c\u7d22\u3067\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u7c21\u5358\u306a\u51e6\u7406\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002 \u4e0b\u8a18\u30da\u30fc\u30b8\u306b\u3082\u3042\u308b\u3088\u3046\u306b\u3001Excel\u306f\u30bb\u30eb\u5185\u306e\u6539\u884c\u3092\u6587\u5b57\u30b3\u30fc\u30c9 LF (0A) \u3068\u3057\u3066\u6271\u3044\u307e\u3059 [&hellip;]","protected":false},"author":1,"featured_media":7111,"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,48],"tags":[],"class_list":["post-4707","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Excel.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1dV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4707","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=4707"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4707\/revisions"}],"predecessor-version":[{"id":4709,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4707\/revisions\/4709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7111"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}