{"id":1996,"date":"2024-12-07T22:36:56","date_gmt":"2024-12-07T13:36:56","guid":{"rendered":"https:\/\/euc-access-excel-db.com\/tips\/?p=1996"},"modified":"2024-12-07T23:04:59","modified_gmt":"2024-12-07T14:04:59","slug":"inputboxl01","status":"publish","type":"post","link":"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/inputboxl01","title":{"rendered":"\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\uff08InpuBox\uff09\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\uff08InpuBox\uff09\u306e\u4f7f\u3044\u65b9<\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"color: #ff0000;\">\u203b\u307e\u3060\u66f8\u304d\u304b\u3051\u3067\u3059\u3002\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u9593\u9055\u3063\u3066\u305f\u3089\u3059\u307f\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #ff0000;\">\u203b\u30e1\u30e2\u66f8\u304d\u306a\u306e\u3067\u3001\u81ea\u5206\u3067\u3082\u610f\u5473\u4e0d\u660e\u306a\u7b87\u6240\u3082\u591a\u3044\u3067\u3059\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002<\/span><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u4f7f\u3044\u65b9<\/p>\n<p>InpuBox \u306e\u623b\u308a\u5024<\/p>\n<p>\u57fa\u672c\u3001\u300c\u6587\u5b57\u5217\u300d\u304c\u8fd4\u308b\u3002<\/p>\n<p>\u6587\u5b57\u5217\u304c\u8fd4\u3063\u3066\u304f\u308b\u3053\u3068\u3060\u3051\u304c\u524d\u63d0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u3044\u3044\u306e\u3067\u3059\u304c\u3001<br \/>\n\u300c\u6570\u5b57\u300d\u3092\u300c\u6570\u5024\u300d\u3068\u3057\u3066\u3068\u3089\u3048\u305f\u3044\u3001\u3068\u304b\u3001<br \/>\n\u30ad\u30e3\u30f3\u30bb\u30eb\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u5834\u5408\u306e\u5206\u5c90\u3082\u5fc5\u8981\u3001\u3068\u304b\u3001<br \/>\n\u5358\u306b\u300c\u6587\u5b57\u5217\u3068\u3057\u3066\u306e\u623b\u308a\u5024\u3092\u6271\u3046\u3060\u3051\u300d\u3067\u306f\u306a\u3044\u5834\u5408\u306f\u3001<br \/>\nIsNumeric\u95a2\u6570\u306a\u3069\u3092\u4f7f\u3063\u305f\u3001\u30c7\u30fc\u30bf\u578b\u306e\u5224\u65ad\u7b49\u3005\u304c\u5fc5\u8981\u3002<\/p>\n<p>Msgbox\u306f\u623b\u308a\u5024\u304c\u6570\u5024\u306a\u306e\u3067\u3001\u7279\u306b\u30c8\u30e9\u30d6\u30eb\u7121\u3044\u3067\u3059\u3051\u3069\u3001<br \/>\nInputBox\u306f\u3001\u6570\u5024\u304c\u3082\u3069\u3063\u3066\u3053\u306a\u3044\u306e\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u203b\u305f\u3060\u3057\u3001Application.Inputbox\u30e1\u30bd\u30c3\u30c9\u306f\u3001<br \/>\n\u623b\u308a\u5024\u306e\u578b\u3092\u3042\u3089\u304b\u3058\u3081\u6307\u5b9a\u3067\u304d\u308b\u306e\u3067\u3001<br \/>\n\u6700\u521d\u304b\u3089\u305d\u3061\u3089\u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\uff1f<br \/>\n\u305f\u3060\u3001\u6574\u6570\u3092\u5165\u529b\u3057\u3066\u3082\u3001\u578b\u304c\u300cDouble\u578b\u300d\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001<br \/>\n\u7d50\u5c40\u306f\u540c\u3058\u304b\u3082\uff1f\uff1f<\/p>\n<p>\u25ce\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u30b1\u30fc\u30b9\u5225\u306e\u623b\u308a\u5024<br \/>\n\u30ad\u30e3\u30f3\u30bb\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u2192\"\"\uff08\u7a7a\u306e\u6587\u5b57\u5217\uff09<br \/>\n\u6570\u5b57\u3092\u5165\u308c\u305f\u3068\u304d\uff08\u5168\u89d2\u3001\u534a\u89d2\uff09\u2192\u6587\u5b57\u5217\u3068\u3057\u3066\u306e\u6570\u5b57\u3002<br \/>\n\u6570\u5b57\u3068\u6587\u5b57\u5217\u6df7\u5728\u306e\u3068\u304d\uff08\u5168\u89d2\u3001\u534a\u89d2\uff09\u2192\u6587\u5b57\u5217\u3002<\/p>\n<p>\u25ce\u6570\u5b57\u3060\u3051\u3092\u5165\u308c\u305f\u3068\u304d\u306b\u3001\u300c\u6570\u5b57\u3060\u3051\u300d\u3092\u5224\u5225\u3059\u308b\u95a2\u6570\u2192IsNumeric\u95a2\u6570\u3002<br \/>\nIsNumeric\u95a2\u6570\u306e\u623b\u308a\u5024<\/p>\n<p>0\u2192True<br \/>\n60\u2192True<br \/>\n0.5\u2192True<\/p>\n<p>\u3042\u2192False<br \/>\n100\u3044\u2192False<br \/>\n\"\"\u2192False \u203b\u2190\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u30ad\u30e3\u30f3\u30bb\u30eb\u5024\u3002<br \/>\nA25\u2192False<\/p>\n<p>\u3010\u4f8b\uff10\uff11\u3011\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5834\u5408<\/p>\n<p>\u57fa\u672c\u3001\u6570\u5b57\u3060\u3051\u306b\u306f\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u623b\u308a\u5024\u304c\u6587\u5b57\u5217\u578b\u3067\u307e\u3063\u305f\u304f\u554f\u984c\u306a\u3044\u3002<br \/>\n\u306a\u306e\u3067\u3001\u623b\u308a\u5024\u3092\u5909\u6570\u306b\u4ee3\u5165\u3057\u305f\u306e\u3061\u3001\u7279\u306b\u30c1\u30a7\u30c3\u30af\u306f\u3044\u3089\u306a\u3044\u3002<\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\n\r\n    Let s_PassWdInput01 = InputBox(\"\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\", \"\u30d1\u30b9\u30ef\u30fc\u30c9\u5165\u529b\")\r\n    \r\n    '2024\/10\/02 \u4fee\u6b63\u30fb\u8ffd\u52a0 \u30d1\u30b9\u30ef\u30fc\u30c9\u4fdd\u8b77\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u305f\u3081\u3002\r\n    If s_PassWdInput01 = s_PassWdSvr01 Then\r\n        '\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5408\u3063\u3066\u3044\u305f\u3089OK\u3002\r\n        '\u4f55\u3082\u3057\u306a\u3044\u3067\u6b21\u3078\u3002\r\n        \r\n    ElseIf s_PassWdInput01 = \"\" Then\r\n        '\u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u3068\u304d\u3001\u7d42\u308f\u308b\u3002\r\n        Exit Sub\r\n        \r\n    Else\r\n        MsgBox \"\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u9055\u3044\u307e\u3059\u3002\"\r\n        Exit Sub\r\n    End If\r\n\r\n\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p>\u3010\u4f8b\uff10\uff12\u3011\u6570\u5024\u3060\u3051\u304c\u5165\u529b\u3055\u308c\u305f\u3053\u3068\u3092\u5224\u5225\u3057\u305f\u3044\u3068\u304d<\/p>\n<p>\u5165\u529b\u5024\u304c\u3001\u6587\u5b57\u5217\u3068\u6570\u5024\u3068\u304c\u6df7\u5728\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u308a\u3001\u8aa4\u4f5c\u52d5\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\n\u623b\u308a\u5024\u3092\u5909\u6570\u306b\u4ee3\u5165\u3057\u305f\u3089\u3001\u5fc5\u305a\u3001\u578b\u306e\u30c1\u30a7\u30c3\u30af\u3084\u3001\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u5909\u63db\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\n    Let i_NoudoPercent01 = InputBox(\" \u300c\" & s_LogoTitle & \"\u300d \u306e\u30ed\u30b4\u306e\u6fc3\u5ea6\u3092\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u3067\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\" & vbCrLf & \"50\u4ee5\u4e0a\u3067\u8584\u304f\u30fb50\u4ee5\u4e0b\u3067\u6fc3\u304f\u306a\u308a\u307e\u3059\u3002\" & vbCrLf & \"\u521d\u671f\u5024\u306f50\u3067\u3059\u3002\" & vbCrLf & \"OK\u30dc\u30bf\u30f3\u62bc\u4e0b\u5f8c\u306e\u8a2d\u5b9a\u53cd\u6620\u306b10\uff5e20\u79d2\u307b\u3069\u304b\u304b\u308a\u307e\u3059\u3002\")\r\n\r\n\r\n    '\u5165\u529b\u3055\u308c\u305f\u5024\u304c\u3001\u300c\u6570\u5b57\u306e\u307f\u300d\u304b\u3069\u3046\u304b\u306e\u30c1\u30a7\u30c3\u30af\u3002\uff08\u5168\u89d2\u306e\u6570\u5b57\u3082\u8a31\u53ef\u3002\uff09\r\n    If IsNumeric(i_NoudoPercent01) = True Then\r\n    \r\n        Let i_NoudoPercent01 = CInt(i_NoudoPercent01)\r\n    \r\n    ElseIf IsNumeric(i_NoudoPercent01) = False Then\r\n    \r\n        '\u30ad\u30e3\u30f3\u30bb\u30eb\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u3082\u3001\u3053\u3053\u306b\u542b\u307e\u308c\u308b\u3002\r\n    \r\n        MsgBox \"\u6570\u5b57\u4ee5\u5916\u304c\u5165\u529b\u3055\u308c\u305f\u304b\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f\u3002\u6700\u521d\u304b\u3089\u3084\u308a\u76f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"\r\n        Exit Sub\r\n        \r\n    Else\r\n    \r\n    \r\n    End If\r\n    \r\n'Stop\r\n\r\n    \r\n    If i_NoudoPercent01 = 0 Then\r\n        '0\u304c\u5165\u529b\u3055\u308c\u305f\u3068\u304d\u3001\u7d42\u308f\u308b\u3002\r\n        MsgBox \"\u300c0\u300d\u4ee5\u5916\u306e\u6574\u6570\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6700\u521d\u304b\u3089\u3084\u308a\u306a\u304a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\" '\u5c11\u6570\u3067\u3082\u30a8\u30e9\u30fc\u51fa\u306a\u3044\u3051\u3069\u3002\r\n        Exit Sub\r\n                \r\n    ElseIf 1 <= i_NoudoPercent01 Then\r\n        '\u4f55\u3089\u304b\u306e\u6570\u5024\uff08\uff1d\u6fc3\u5ea6\uff09\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u305f\u3089OK\u3002\r\n        '\u4f55\u3082\u3057\u306a\u3044\u3067\u6b21\u3078\u3002\r\n\r\n    Else\r\n        MsgBox \"\u30a8\u30e9\u30fc\u3067\u3059\u3002\u7ba1\u7406\u8005\u306b\u9023\u7d61\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"\r\n        Exit Sub\r\n    End If\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\n\r\n\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n","protected":false},"excerpt":{"rendered":"\u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\uff08InpuBox\uff09\u306e\u4f7f\u3044\u65b9 \u3000\u3000 \u203b\u307e\u3060\u66f8\u304d\u304b\u3051\u3067\u3059\u3002\u3059\u307f\u307e\u305b\u3093\u3002 \u203b\u9593\u9055\u3063\u3066\u305f\u3089\u3059\u307f\u307e\u305b\u3093\u3002 \u203b\u30e1\u30e2\u66f8\u304d\u306a\u306e\u3067\u3001\u81ea\u5206\u3067\u3082\u610f\u5473\u4e0d\u660e\u306a\u7b87\u6240\u3082\u591a\u3044\u3067\u3059\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002 \u3000\u3000 \u3000\u3000 \u30a4\u30f3\u30d7\u30c3\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u4f7f\u3044\u65b9 ...","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[234],"_links":{"self":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1996"}],"collection":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/comments?post=1996"}],"version-history":[{"count":0,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1996\/revisions"}],"wp:attachment":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/media?parent=1996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/categories?post=1996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}