{"id":1024,"date":"2017-06-18T15:58:08","date_gmt":"2017-06-18T06:58:08","guid":{"rendered":"https:\/\/euc-access-excel-db.com\/tips\/?p=1024"},"modified":"2017-06-18T16:13:21","modified_gmt":"2017-06-18T07:13:21","slug":"cmdbar-button-num-chk","status":"publish","type":"post","link":"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075010_ac2ktips\/cmdbar-button-num-chk","title":{"rendered":"Excel2000VBA \u3059\u3079\u3066\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u756a\u53f7\u306e\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Excel2000VBA \u3059\u3079\u3066\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u756a\u53f7\u306e\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5<\/p>\n<p>Excel2007\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3002<br \/>\n\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b3\u30d4\u30da\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001A\u5217\u306b\u3059\u3079\u3066\u306e\u30dc\u30bf\u30f3\u540d\u3001B\u5217\u306b\u30dc\u30bf\u30f3\u306e\u756a\u53f7\u304c\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u72ec\u81ea\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u4f5c\u3063\u305f\u3068\u304d\u3001\u305d\u306e\u30dc\u30bf\u30f3\u304c\u4f55\u756a\u304b\u306a\u3069\u3092\u77e5\u308b\u306e\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">\r\n'################################################################\r\n'\u3059\u3079\u3066\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u756a\u53f7\u306e\u30c1\u30a7\u30c3\u30af\r\n'\u203b\u3059\u3079\u3066\u3068\u3044\u3063\u3066\u3082\u3001\u5f62\u5f0f\u3092\u9078\u629e\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u3001\u307f\u305f\u3044\u306a\r\n'\u30c0\u30a4\u30a2\u30ed\u30b0\u30e1\u30cb\u30e5\u30fc\u306e\u30dc\u30bf\u30f3\u306e\u756a\u53f7\u306f\u7121\u3044\u3082\u3088\u3046\r\n'\r\n'################################################################\r\n\r\nSub AllCmdBarNumChk01()\r\n    Dim i As Long\r\n    Dim j As Long\r\n    Dim tmp01 As Long\r\n    \r\n    i = 1\r\n    j = 1\r\n    tmp01 = 0\r\n    \r\n    For j = 1 To 50\r\n        With CommandBars(j)\r\n            tmp01 = tmp01 + .Controls.Count\r\n            For i = 1 To .Controls.Count\r\n                Cells(tmp01 + i, 1) = .Controls(i).Caption\r\n                Cells(tmp01 + i, 2) = .Controls(i).ID\r\n            Next i\r\n        End With\r\n    Next j\r\nEnd Sub\r\n\r\n\r\n'################################################################\r\n'\u300c\u30df\u30cb\u7de8\u96c6\u300d\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u756a\u53f7\u306e\u30c1\u30a7\u30c3\u30af\r\n'\u3042\u3089\u304b\u3058\u3081\u300c\u30df\u30cb\u7de8\u96c6\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u304c\u4f5c\u3063\u3066\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002\r\n'\r\n'################################################################\r\n\r\nSub CellHennsyuuNumChk()\r\n    Dim i As Long\r\n        With CommandBars(\"\u30df\u30cb\u7de8\u96c6\")\r\n            \r\n            For i = 1 To .Controls.Count\r\n                Cells(i, 1) = .Controls(i).Caption\r\n                Cells(i, 2) = .Controls(i).ID\r\n            Next i\r\n        End With\r\n\r\nEnd Sub\r\n\r\n\r\n'################################################################\r\n'\r\n'\r\n'\r\n'################################################################\r\n\r\nSub Sample7()\r\n    Dim i As Long\r\n        With CommandBars(\"Edit\")\r\n            \r\n            For i = 1 To .Controls.Count\r\n                Cells(i, 1) = .Controls(i).Caption\r\n                Cells(i, 2) = .Controls(i).ID\r\n            Next i\r\n        End With\r\n\r\nEnd Sub\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Excel2000VBA \u3059\u3079\u3066\u306e\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u756a\u53f7\u306e\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5 Excel2007\u3067\u306f\u52d5\u304d\u307e\u305b\u3093\u3002 \u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b3\u30d4\u30da\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001A\u5217\u306b\u3059\u3079\u3066\u306e\u30dc\u30bf\u30f3\u540d\u3001B\u5217\u306b\u30dc\u30bf\u30f3\u306e\u756a\u53f7\u304c\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3059\u3002 \u72ec\u81ea\u306e\u30c4 ...","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"_links":{"self":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1024"}],"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=1024"}],"version-history":[{"count":0,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1024\/revisions"}],"wp:attachment":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/media?parent=1024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/categories?post=1024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}