{"id":1590,"date":"2015-04-27T18:17:52","date_gmt":"2015-04-27T09:17:52","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=1590"},"modified":"2015-04-27T18:17:52","modified_gmt":"2015-04-27T09:17:52","slug":"ismissing","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/ismissing\/","title":{"rendered":"\u5f15\u6570\u304c\u7701\u7565\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff08 IsMissing \u95a2\u6570 \uff09"},"content":{"rendered":"<h2>IsMissing \u95a2\u6570\u306e\u4f7f\u3044\u65b9<\/h2>\n<br \/>\n<div class=\"m30-l\">\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p><em>result<\/em> = <strong>IsMissing<\/strong> ( <em>argname<\/em> )<\/p>\n<\/div>\n<br \/>\n<h3>\u3010\u5f15\u6570\u30fb\u623b\u308a\u5024\u3011<\/h3>\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>argname&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306e\u7701\u7565\u53ef\u80fd\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u306e\u5f15\u6570\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>result&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u547c\u3073\u51fa\u3057\u305f\u3068\u304d\u306b\u7701\u7565\u53ef\u80fd\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u5f15\u6570\u304c\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u306b\u6e21\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u306e\u7d50\u679c\uff08\u30d6\u30fc\u30eb\u578b\uff09<br \/>\n\u3000<strong>\u5f15\u6570\u304c\u6e21\u3055\u308c\u306a\u304b\u3063\u305f\u6642\u3001\u3064\u307e\u308a\u5f15\u6570\u304c\u7701\u7565\u3055\u308c\u305f\u3068\u304d \u21d2 \u771f\uff08True\uff09<\/strong><br \/>\n\u3000<strong>\u5f15\u6570\u304c\u6e21\u3055\u308c\u305f\u6642 \u21d2 \u507d\uff08False\uff09<\/strong><\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\"><strong>IsMissing \u95a2\u6570<\/strong>\u306f\u3001\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u4ee5\u5916\u306e\u6574\u6570\u578b\u3084\u500d\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u306a\u3069\u306e<span class=\"red\"><strong>\u901a\u5e38\u306e\u30c7\u30fc\u30bf\u578b\u306b\u5bfe\u3057\u3066\u306f\u7121\u52b9<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<\/div>\n<br \/>\n<h2>IsMissing \u95a2\u6570\u306e\u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\uff1c\u305d\u306e\uff11\uff1e<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"IsMissing \u95a2\u6570\u306e\u30b5\u30f3\u30d7\u30eb\uff11\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\n\r\n'------------------------------------------------------------------------------\r\n' IsMissing \u95a2\u6570\u306e\u52d5\u4f5c\r\n'------------------------------------------------------------------------------\r\nSub Sample_ismissing()\r\n    \r\n    Dim num As Long, str As String, obj1 As Object, obj2 As Object\r\n    num = 100: str = \"\u3053\u3093\u306b\u3061\u306f\"\r\n    Set obj2 = Nothing\r\n\r\n    Debug.Print test_missing01()            'True   \u203b\u5f15\u6570\u304c\u7701\u7565\u3055\u308c\u305f\r\n    Debug.Print test_missing01(num)         'False\r\n    Debug.Print test_missing01(str)         'False\r\n    Debug.Print test_missing01(obj1)        'False\r\n    Debug.Print test_missing01(obj2)        'False\r\n    Debug.Print test_missing01(Null)        'False\r\n    \r\n    Debug.Print\r\n    \r\n    Debug.Print test_missing02()            'False  \u203b\u3053\u306e\u5834\u5408\u3001argu \u306f\u30010 \u3068\u306a\u308b\r\n    Debug.Print test_missing02(num)         'False\r\n    \r\n    Debug.Print\r\n    \r\n    Debug.Print test_missing03()            'True   \u203b\u5f15\u6570\u304c\u7701\u7565\u3055\u308c\u305f\r\n    Debug.Print test_missing03(num, str)    'False\r\n    Debug.Print test_missing03(obj1)        'False\r\n    Debug.Print test_missing03(obj2)        'False\r\n    Debug.Print test_missing03(1, 2, 3)     'False\r\n    Debug.Print test_missing03(Null)        'False\r\n\r\nEnd Sub\r\n\r\n'------------------------------------------------------------------------------\r\n\r\n'\u7701\u7565\u53ef\u80fd\u306a\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\u5f15\u6570\r\nFunction test_missing01(Optional argu)\r\n\r\n    test_missing01 = IsMissing(argu)\r\n\r\nEnd Function\r\n\r\n\r\n'\u7701\u7565\u53ef\u80fd\u306a\u6570\u5024\u578b\uff08Long\uff09\u5f15\u6570\r\nFunction test_missing02(Optional argu As Long)\r\n\r\n    test_missing02 = IsMissing(argu)\r\n\r\nEnd Function\r\n\r\n\r\n'\u30ad\u30fc\u30ef\u30fc\u30c9 ParamArray \u3092\u6307\u5b9a\u3057\u305f\u5f15\u6570\r\nFunction test_missing03(ParamArray argu())\r\n\r\n    test_missing03 = IsMissing(argu)\r\n\r\nEnd Function\r\n\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\/04\/ismissing01.jpg?ssl=1\" rel=\"lightbox[1590]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing01.jpg?resize=400%2C274&#038;ssl=1\" alt=\"IsMissing \u95a2\u6570 \u4f8b\uff11\" width=\"400\" height=\"274\" class=\"alignnone size-medium wp-image-1593\" srcset=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing01.jpg?resize=400%2C274&amp;ssl=1 400w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing01.jpg?resize=580%2C398&amp;ssl=1 580w, https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing01.jpg?w=894&amp;ssl=1 894w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/>\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9\uff1c\u305d\u306e\uff12\uff1e<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"IsMissing \u95a2\u6570\u306e\u30b5\u30f3\u30d7\u30eb\uff12\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\n\r\n'------------------------------------------------------------------------------\r\n' IsMissing \u95a2\u6570 \u4f7f\u7528\u4f8b\r\n'------------------------------------------------------------------------------\r\n'\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u7701\u7565\u53ef\u80fd\u306a\u5f15\u6570\uff08\u30d0\u30ea\u30a2\u30f3\u30c8\u578b\uff09\u3092\u4f7f\u7528\u3057\u3001\r\n'\u7701\u7565\u3057\u305f\u5834\u5408\u306e\u51e6\u7406\uff08\u521d\u671f\u5024\u3092\u6307\u5b9a\u3059\u308b\u7b49\uff09\u3092\u884c\u3046\u5834\u5408\u306b\r\n'IsMissing \u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\r\nSub Sample_ismissing01()\r\n\r\n    MsgBox test_missing04()\r\n\r\nEnd Sub\r\n\r\n'------------------------------------------------------------------------------\r\nFunction test_missing04(Optional argu)\r\n\r\n    If IsMissing(argu) Then\r\n        argu = \"\u5f15\u6570\u306f\u7701\u7565\u3055\u308c\u307e\u3057\u305f\uff01\"\r\n    End If\r\n    \r\n    test_missing04 = argu\r\n        \r\nEnd Function\r\n\r\n\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\/04\/ismissing02.jpg?ssl=1\" rel=\"lightbox[1590]\"><img loading=\"lazy\" src=\"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing02.jpg?resize=198%2C178&#038;ssl=1\" alt=\"IsMissing \u95a2\u6570 \u4f8b\uff12\" width=\"198\" height=\"178\" class=\"alignnone size-full wp-image-1594\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<br \/><\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>IsMissing \u95a2\u6570\u306e\u4f7f\u3044\u65b9 \u3010\u66f8\u5f0f\u3011 result = IsMissing &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":"\u5f15\u6570\u304c\u7701\u7565\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\uff08 IsMissing \u95a2\u6570 \uff09"},"categories":[37],"tags":[162,163,63,38,165,151,164,152],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/04\/ismissing01-400x2741.jpg?fit=400%2C274&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-pE","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1590"}],"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=1590"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1590\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/1590\/revisions\/1596"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/1597"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=1590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=1590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}