{"id":1443,"date":"2018-08-31T22:43:30","date_gmt":"2018-08-31T13:43:30","guid":{"rendered":"https:\/\/euc-access-excel-db.com\/tips\/?p=1443"},"modified":"2020-06-13T23:10:01","modified_gmt":"2020-06-13T14:10:01","slug":"make-current-obuject-siki-01-imidhieito-kansuu01","status":"publish","type":"post","link":"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/make-current-obuject-siki-01-imidhieito-kansuu01","title":{"rendered":"Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u4f7f\u3046\u81ea\u4f5c\u95a2\u6570 \u2605 \uff5eCurrent\u7121\u7701\u7565\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u8a18\u8ff0\uff5e"},"content":{"rendered":"<p>\u25cf Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u4f7f\u3046\u81ea\u4f5c\u95a2\u6570 \u2605 \uff5eCurrent\u7121\u7701\u7565\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u8a18\u8ff0\uff5e<br \/>\n<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\u76ee\u6b21<br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_13\">(01)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk03Type\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_169\">(02)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk04Name\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09\u203bName\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_234\">(03)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk05Index\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09\u203bIndex\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051<\/a><\/SPAN><br \/>\n<span style=\"font-size: 9pt;\"> \u3000<a href=\"#lbl_283\">(04)\u8272\u306e\u6570\u5024\u3092\u300c\u8d64\u30fb\u7dd1\u30fb\u9752\u300d\u306e\u6570\u5024\u306b\u5909\u63db\u3059\u308b\uff08\u300cGetIntByRGB\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09<\/a><\/SPAN><br \/>\n\u203bShift\uff0bTAB\u30ad\u30fc\u3001\u3082\u3057\u304f\u306f\u3001Home\u30ad\u30fc\u3001Home\u30ad\u30fc\uff0bTAB\u6570\u56de\u3001\u3092\u62bc\u3059\u3068\u3001\u76ee\u6b21\u4ed8\u8fd1\u306b\u623b\u308c\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u203b\u95a2\u9023\u8a18\u4e8b<br \/>\n<a href=\"https:\/\/euc-access-excel-db.com\/tips\/ct07_se\/ct075012_xls2k_vba_tips\/make-current-obuject-siki-01-imidhieito-kansuu02\" target=\"_blank\" rel=\"noopener noreferrer\">\u2605Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\u4eca\u30fb\u9078\u629e\u3055\u308c\u3066\u308b or \u6307\u5b9a\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7701\u7565\u306e\u7121\u3044\u968e\u5c64\u69cb\u9020\u3092\u3055\u3063\u3068\u8abf\u3079\u308b\u81ea\u4f5c\u95a2\u6570 \uff5e\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u4f7f\u3046\u81ea\u4f5c\u95a2\u6570 \u2605 \uff5eCurrent\u7121\u7701\u7565\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u8a18\u8ff002\uff5e<\/a><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_7\">\u2605 \u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u4f7f\u3046\u81ea\u4f5c\u95a2\u6570\uff08\u3061\u3087\u3063\u3068\u3057\u305f\u7701\u529b\u5316\uff09<\/a><\/p>\n<p>\u95a2\u6570\u3068\u3044\u3046\u304b\u3001\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3069\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u4f7f\u3046\u3001\u623b\u308a\u5024\u304c\u7121\u304b\u3063\u305f\u308a\u6709\u3063\u305f\u308a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u305f\u3061\u3067\u3059\u3002\u50d5\uff08\u30c9\u7d20\u4eba\uff09\u304c\u4f5c\u3063\u305f\u3084\u3064\u306a\u306e\u3067\u30b7\u30e7\u30dc\u3044\u3067\u3059\u304c\u3001\u305d\u308c\u306a\u308a\u306b\u4f7f\u3048\u307e\u3059\u3002\u3068\u304f\u306bExcel\u521d\u5fc3\u8005\u306e\u65b9\u5411\u3051\u3067\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_13\">(01)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk03Type\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09<\/a><\/p>\n<p>\u30b7\u30fc\u30c8\u4e0a\u3067\u9078\u629e\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3001\u300c\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\uff08\u89aa\u30fb\u3070\u3042\u3061\u3083\u3093\u30fb\u3072\u3044\u3070\u3042\u3061\u3083\u3093\u3001\u3072\u3044\u3072\u3044\u3070\u3042\u3061\u3083\u3093\u30fb\u30fb\u30fb\u306e\uff09\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u540d\u300d\u304c\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u3001\u5fc5\u305a\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u77e5\u308a\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30b0\u30e9\u30d5\u4e0a\u306e\u4f55\u304b\u3084\u30bb\u30eb\u306a\u3069\uff09\u3092\u753b\u9762\u4e0a\u3067\u9078\u629e\u3057\u3066\u304b\u3089\u3001VBE(Visual Basic Editor\uff09\u306e\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3066<\/p>\n<p>\uff1f Obchk03Type<\/p>\n<p>\u3068\u30b3\u30d4\u30da\u3057\u3066\u3001Enter\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30b3\u30fc\u30c9\u3067\u3059\u3002\u3053\u308c\u3092\u597d\u304d\u306a\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b3\u30d4\u30da\u3059\u308c\u3070\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\nFunction Obchk03Type()\r\n\r\n    Dim ObjTest06 As Object\r\n    \r\n    Set ObjTest06 = Application.Selection\r\n    \r\n    \r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent.Parent.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent.Parent)\r\n    Debug.Print TypeName(ObjTest06.Parent)\r\n    Debug.Print TypeName(ObjTest06)\r\n    Debug.Print \"===============================\"\r\n    \r\n    Stop\r\n    \r\n    Set ObjTest06 = Nothing\r\n\r\nEnd Function\r\n'\r\n'\r\n<\/pre>\n<p>\u4f8b\u3048\u3070\u4efb\u610f\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u3001\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3066\u300c? Obchk03Type\u300d\u3068\u66f8\u3044\u3066Enter\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Application<br \/>\nApplication<br \/>\nApplication<br \/>\nApplication<br \/>\nApplication<br \/>\nApplication<br \/>\nWorkbook<br \/>\nWorksheet<br \/>\nRange<br \/>\n===============================<\/p>\n<p>\u3053\u308c\u306f\u30fb\u30fb\u30fb\u3001<\/p>\n<p>\u30fb\u300c\u30bb\u30eb\u300d\u3068\u3044\u3046\u3082\u306e\u306f\u300cRange\u300d\u3068\u3044\u3046\u7a2e\u985e\u306e\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u300d\u306b\u306a\u308a\u307e\u3059\u3088\uff5e\uff01<br \/>\n\u30fb\u305d\u3057\u3066\u305d\u306e\u4e0a\u4f4d\u306b\u306f\u3001\u300cApplication\u3001Workbook\u3001Worksheet\u300d\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308a\u307e\u3059\u3088\uff5e\uff01<br \/>\n\u30fb\u3067\u3001\u968e\u5c64\u69cb\u9020\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u307e\u3059\u3088\uff5e\u3001<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbook<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheet<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRange<\/p>\n<p>\u30fb\u968e\u5c64\u69cb\u9020\u306e\u6700\u4e0a\u4f4d\u306f\u300cApplication\u300d\uff08\uff1dExcel\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a6\u30a3\u30f3\u30c9\u30a6\uff1d\u89aa\u30a6\u30a3\u30f3\u30c9\u30a6\uff09\u3067\u3059\u3088\uff5e\uff01<\/p>\n<p>\u30fb\u30fb\u30fb\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\uff08\u300cApplication\u300d\u304c\u8907\u6570\u51fa\u3066\u304d\u305f\u3089\u3001\uff12\u3064\u3081\u3088\u308a\u3082\u4e0a\u306e\u3082\u306e\u306f\u7121\u8996\u3057\u307e\u3059\u3002\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u300cStop\u300d\u547d\u4ee4\u306e\u3068\u3053\u308d\u3067\uff08Stop\u304c\u9ec4\u8272\u304f\u306a\u3063\u3066\uff09\u5b9f\u884c\u304c\u4e00\u6642\u4e2d\u65ad\u3057\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u4e2d\u65ad\u30e2\u30fc\u30c9\u306e\u72b6\u614b\u3067\u3001\u300c\u8868\u793a\u2192\u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u300d\u306b\u3066 \u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u73fe\u5728\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u3092\u5168\u90e8\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u4e2d\u306b\u300cObjTest06\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u308c\u304c\u30b7\u30fc\u30c8\u753b\u9762\u4e0a\u3067\u9078\u629e\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u9805\u76ee\u306e\u300c\uff0b\u300d\u30de\u30fc\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u6301\u3064\u3059\u3079\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u5c55\u958b\u3055\u308c\u305f\u4e2d\u306e\u3001<br \/>\n\u300c\u5f0f\u300d\u306e\u5217\u304c\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u3001<br \/>\n\u300c\u5024\u300d\u306e\u5217\u304c\u5b9f\u969b\u306e\u5404\u30d7\u30ed\u30d1\u30c6\u30a3\u73fe\u5728\u306e\u8a2d\u5b9a\u5024<br \/>\n\u300c\u578b\u300d\u304c\u30c7\u30fc\u30bf\u578b<br \/>\n\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u300cParent\u300d\u3068\u3044\u3046\u9805\u76ee\u3092\u63a2\u3057\u3066\u300c\uff0b\u300d\u30de\u30fc\u30af\u3092\u5c55\u958b\u3057\u3066\u3001\u6bb5\u968e\u7684\u306b\u300cParent\u300d\u3068\u3044\u3046\u9805\u76ee\u3070\u3063\u304b\u308a\u3067\u63a2\u3063\u3066\u3044\u304f\u3068\u3001\u89aa\u30fb\u3070\u3042\u3061\u3083\u3093\u30fb\u3072\u3044\u3070\u3042\u3061\u3083\u3093\u30fb\u30fb\u30fb\u3001\u3068\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5185\u5bb9\u3082\u5168\u90e8\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u5b50\u3001\u5b6b\u3001\uff09\u306f\u3001\u300cParent\u300d\u4ee5\u5916\u306e\u300c\uff0b\u300d\u30de\u30fc\u30af\u306e\u4ed8\u3044\u3066\u3044\u308b\u3082\u306e\u304c\u5168\u90e8\u305d\u308c\u3067\u3059\u3002\u4e0b\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u6bb5\u968e\u7684\u306b\u3069\u3093\u3069\u3093\u4e0b\u3078\u3082\u3050\u308c\u307e\u3059\u306e\u3067\u3001\u4f55\u968e\u5c64\u304b\u4e0b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u5024\u3082\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u76ee\u7684\u3092\u9054\u3057\u305f\u3089\u3001F5\u30ad\u30fc\u3092\u62bc\u305b\u3070\u3001\u6700\u5f8c\u307e\u3067\u5b9f\u884c\u3057\u3066\u4f55\u3082\u3057\u3066\u306a\u3044\u72b6\u614b\u306b\u623b\u308a\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"color: #ff0000;\"><b>\u203b\u88dc\u8db3\u8aac\u660e\uff08\u8d85\u91cd\u8981\uff01\uff01\uff01\uff09<\/b><\/span><\/p>\n<p>\u53b3\u5bc6\u306a\u968e\u5c64\u69cb\u9020\u3068\u3057\u3066\u306f\u3001<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbook<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheet<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRange<\/p>\n<p>\u3067\u306f\u306a\u304f\u3066\u3001<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbooks\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbook<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheet<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRange<\/p>\n<p>\u30fb\u30fb\u30fb\u3068\u3044\u3046\u98a8\u306b\u3001\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u8907\u6570\u306e\u540c\u7a2e\u30fb\u3042\u308b\u3044\u306f\u4f3c\u305f\u7a2e\u985e\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u305f\u3061\u3092\u675f\u306d\u3066\u4e00\u62ec\u7ba1\u7406\u3059\u308b\u6a5f\u80fd\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u300d\u304c\u305d\u308c\u305e\u308c\u6240\u5b9a\u306e\u5834\u6240\u306b\u5b58\u5728\u3059\u308b\u968e\u5c64\u69cb\u9020\u3067\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001<span style=\"color: #ff0000;\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u66f8\u304f\u3068\u304d\u306f\u3001\u305d\u306e\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u968e\u5c64\u300d\u306f\u51fa\u3066\u3053\u306a\u3044<\/span><span style=\"color: #008000;\"><b>\u306e\u3067\u5b9f\u969b\u306b\u66f8\u304f\u3053\u3068\u304c\u7121\u3044<\/b><\/span>\u3067\u3059\u3057\u3001\u307e\u305f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u81ea\u4f53\u3082\u51fa\u3066\u3053\u306a\u3044\u306e\u3067\u3001<span style=\"color: #0000ff;\"><b>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u66f8\u304f\u5834\u5408\u306b\u9650\u3063\u3066\u306f\u3001<\/b><\/span>\u4fbf\u5b9c\u4e0a\u3001\u5404\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\uff08\u968e\u5c64\uff09\u304c\u7701\u7565\u3055\u308c\u305f\u4e0b\u56f3\u306e\u968e\u5c64\u69cb\u9020\u56f3\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbook<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheet<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRange<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u672c\u81ea\u4f5c\u95a2\u6570\uff08\u300cObchk03Type\u300d\uff09\u3092\u4f7f\u3063\u305f\u3060\u3051\u3067\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4f4d\u7f6e\u3065\u3051\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u66f8\u304f\u3068\u304d\u3060\u3051\u300d\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u5358\u4e00\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u540c\u3058\u968e\u5c64\u3060\u3068\u307f\u306a\u3057\u3066\u7406\u89e3\u30fb\u8a18\u8ff0\u3057\u307e\u3059\u3002\uff08\u4e0b\u56f3\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002Excel2000\u306e\u30d8\u30eb\u30d7\u306e<a href=\"https:\/\/euc-access-excel-db.com\/00000WPhtml\/Excel2000-obj-model01.png\" target=\"_blank\" rel=\"noopener noreferrer\">\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30e2\u30c7\u30eb\u306e\u968e\u5c64\u69cb\u9020\u56f3<\/a>\u3082\u540c\u3058\u3088\u3046\u306a\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u2190\u2190\u203b\u3053\u306e\u56f3\u306f\u3088\u304f\u4f7f\u308f\u308c\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3057\u304b\u8f09\u3063\u3066\u306a\u3044\u3089\u3057\u304f\u3001\u63cf\u304b\u308c\u3066\u306a\u3044\u3082\u306e\u3082\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070Sheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u304bRanges\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3002\uff09<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbooks\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff3f\uff3f\uff3f\u3000\u5358\u4e00\u306eWorkbook\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff3f\uff3f\uff3f\u3000\u5358\u4e00\u306eWorksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRanges\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff3f\uff3f\uff3f\u3000\u5358\u4e00\u306eRange\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/p>\n<p>\u3053\u306e\u3053\u3068\u306f\u30fb\u30fb\u30fb\u3001<br \/>\n\u73fe\u5b9f\u306b\u5b9f\u969b\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u66f8\u304f\u3068\u304d\u306b\u3001<br \/>\nApplication.Workbooks.Workbooks(1).Worksheets.Worksheets(1).Ranges.Range(\"A1\")<br \/>\n\u3068\u66f8\u304f\u306e\u3067\u306f\u306a\u304f\u3001<br \/>\nApplication.Workbooks(1).Worksheets(1).Range(\"A1\")<br \/>\n\u3068\u66f8\u304f\u3053\u3068\u304b\u3089\u3082\u3001<br \/>\n\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n\u9006\u306b\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u3092\u66f8\u304f\u5834\u5408\u3067\u306f\u306a\u304f\u3001\u4f8b\u3048\u3070\u300c\u30a8\u30e9\u30fc\u89e3\u6c7a\u306a\u3069\u3092\u3059\u308b\u969b\u300d\u306f\u3001<\/p>\n<p>\u3000\u3000Application<br \/>\n\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbooks\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorkbook<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fWorksheet<br \/>\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\uff5c\uff3fRange<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u968e\u5c64\u304c\u300c1\u6bb5\u5206\u300d\u3068\u3057\u3066\u5897\u3048\u305f\u968e\u5c64\u69cb\u9020\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u3001\u30a8\u30e9\u30fc\u89e3\u6c7a\u30fb\u539f\u56e0\u8abf\u67fb\u3001\u7b49\u3005\u306b\u3042\u305f\u308a\u307e\u3059\u3002<br \/>\n\u50d5\u306a\u3093\u3066\u7279\u306b\u305d\u3046\u306a\u3093\u3067\u3059\u3051\u3069\u3001\u3069\u3093\u306a\u3068\u3053\u308d\uff08\u3069\u3093\u306a\u601d\u3044\u8fbc\u307f\u3084\u6c7a\u3081\u3064\u3051\u3001\u52d8\u9055\u3044\u3001\u7121\u77e5\uff09\u306b\u539f\u56e0\u304c\u6f5c\u3093\u3067\u3044\u308b\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u306e\u3067\u30fb\u30fb\u30fb\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<span style=\"color: #ff0000;\"><b>\u203b\u3055\u3089\u306b\u88dc\u8db3\uff08\u3053\u308c\u3082\u8d85\u91cd\u8981\uff01\uff01\uff01\uff09\uff1a\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53d6\u5f97\u3068<del datetime=\"2019-05-15T09:44:43+00:00\">\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u7d4c\u7531\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53d6\u5f97<\/del>\uff08\u3068\u3044\u3046\u304b\u3001\u540c\u540d\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u3092\u6df7\u540c\u3057\u306a\u3044\u3088\u3046\u306b\u3002<\/b><\/span><\/p>\n<p>\u306a\u305c\u3053\u306e\u3053\u306e\u3053\u3068\u304c\u8d85\u91cd\u8981\u304b\u3068\u3044\u3046\u3068\u3001\u305d\u306e\u3053\u3068\u3092\u77e5\u3089\u306a\u3044\u3068Excel\u306e\u30d8\u30eb\u30d7\u304c\u8aad\u3081\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>Excel\u306e\u5834\u5408\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u306b\u51fa\u3066\u304f\u308b\u300c\u3044\u304b\u306b\u3082\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3063\u307d\u3044\u540d\u524d\u300d\u306f\u3001\u5b9f\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u3067\u306f\u306a\u304f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u3068\u540c\u540d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u540d\u524d\u3067\u3059\uff08\u305f\u3068\u3048\u3070Worksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068Worksheets\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u3002<\/p>\n<p>\u540c\u3058\u300cs\u300d\u304c\u4ed8\u3044\u305f\u8907\u6570\u5f62\u306a\u306e\u3067\u6df7\u540c\u3057\u3084\u3059\u3044\u306e\u3067\u3059\u304c\u3001\u30d8\u30eb\u30d7\u306b\u3082\u3001\u4f8b\u3048\u3070Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u306a\u3089\u3001\u300e\u5358\u4f53\u306e Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001Worksheets(index) \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u300f\u3068\u306f\u3063\u304d\u308a\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5358\u4f53\u306e Worksheet \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u3001\u300cWorksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3048\u300d\u3068\u306f\u4e00\u5207\u66f8\u3044\u3066\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001Excel\u3067\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u76f4\u63a5\u4f7f\u3063\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u3092\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u3002\uff08<span style=\"color: #0000ff;\"><b>\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4e2d\u304b\u3089\u5358\u4e00\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9078\u3073\u51fa\u3059\u4f5c\u696d\u304c\u306a\u3055\u308c\u3066\u3044\u308b\u300d\u3068\u3044\u3046\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u3093\u3067\u3059\u3051\u3069\u3001<\/b><\/span><span style=\"color: #008000;\"><b>\u305d\u308c\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u81ea\u8eab\u304c\u7387\u5148\u3057\u3066\u30fb\u8d77\u70b9\u3068\u306a\u3063\u3066\u3084\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3066\u3001\u540c\u3058\u540d\u524d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u983c\u307e\u308c\u3066\u3084\u3063\u3066\u308b\u30fb\u30fb\u30fb<\/b><\/span>\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002\uff09<\/p>\n<p>\u5f37\u3044\u3066\u8a00\u3046\u3068\u3001Worksheets(index) \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5165\u308a\u53e3\u3068\u3057\u3066\u3001\u88cf\u65b9\u3067\u76ee\u7acb\u305f\u305a\u306bWorksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u672c\u5f53\u306fSheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3060\u3051\u3069\uff09\u3092\u8997\u304d\u306b\u884c\u304d\u3001\u305d\u3053\u304b\u3089Worksheet\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30921\u500b\u3001\u53d6\u5f97\u3057\u3066\u3044\u308b\u30fb\u30fb\u30fb\u3068\u3044\u3046\u30a4\u30e1\u30fc\u30b8\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u3042\u308b\u3044\u306f\u3001Worksheets(index) \u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3044\u3046\u300c\u6a5f\u80fd\u300d\u304c\u3001\u300c\u304a\u30fc\u3044\uff01Worksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3055\u30fc\u3093\uff01\u4eca\u304b\u3089\u8a00\u3046\u30b7\u30fc\u30c8\u30921\u500b\u3001\u53d6\u308a\u51fa\u3057\u3066\u306d\uff5e\uff01\u300d\u3068\u3044\u3046\u611f\u3058\u3067Worksheets\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u3044\u3046\u300c\u6a5f\u80fd\u300d\u306b\u53f8\u4ee4\u3092\u4f1d\u9054\u3057\u3066\u3044\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u79c1\u3089\u30c9\u7d20\u4eba\u306f\u8b0e\u306e\u90e8\u5206\u306f\u305d\u3093\u306a\u98a8\u306b\u52dd\u624b\u306b\u30a4\u30e1\u30fc\u30b8\u3057\u3066\u3082\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #7401DF;\"><b>\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3001\u81ea\u8eab\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u8a2d\u5b9a\u3092\u3057\u3064\u3064\u3001\u540c\u6642\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u9023\u9396\u53d6\u5f97\u3082\u3057\u3066\u3044\u308b\u30fb\u30fb\u30fb\u300d\u3068\u3044\u3046\u3070\u304f\u3063\u3068\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<\/b><\/span><\/p>\n<p><del datetime=\"2019-05-15T09:44:43+00:00\">\u306a\u304a\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u7d4c\u7531\u3067\u30fb\u30fb\u30fb\u3001\u3064\u307e\u308a\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u76f4\u63a5\u30fb\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u8d77\u70b9\u3067\u3000\u5358\u4e00\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u30b1\u30fc\u30b9\u300d\u3068\u3044\u3046\u306e\u306f\u3001\u4f8b\u3048\u3070\u300c\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u300d\u3068\u547c\u3070\u308c\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30fc\u30e0\u4e0a\u3084\u30b7\u30fc\u30c8\u4e0a\u306b\u4f5c\u3063\u305f\u30b3\u30de\u30f3\u30c9\u30dc\u30bf\u30f3\u3084\u30ea\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306a\u3069\u306e\u90e8\u54c1\uff09\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u304c\u305d\u3046\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001Excel\u3067\u306f\u306a\u304fAccess\u306e\u5834\u5408\u306f\u307b\u3068\u3093\u3069\u304c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u7d4c\u7531\u3067\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u30b1\u30fc\u30b9\u306f\u57fa\u672c\u3001\u307b\u3068\u3093\u3069\u7121\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\uff08\u3063\u3066\u50d5\u304c\u77e5\u3089\u306a\u3044\u3060\u3051\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u30fb\u30fb\u30fb\uff09\u3002\u5f37\u3044\u3066\u8a00\u3046\u3068COM\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u3067Excel\u306e\u6a5f\u80fd\u3092\u4f7f\u3046\uff08\uff1dExcelVBA\u3092AccessVBA\u306e\u4e2d\u306b\u66f8\u304f\uff09\u6642\u304f\u3089\u3044\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/del><\/p>\n<p>Word\u306e\u5834\u5408\u306f\u3001\u591a\u5206Excel\u3068\u4f3c\u3066\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u7d4c\u7531\u3067\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53d6\u5f97\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #32cd32;\"><b><span style=\"color: #ff0000;\"><b>\u203b2019\/05\/14 \u4fee\u6b63\uff1a\u3053\u306e\u8a18\u4e8b\u306e\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u7d4c\u7531\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53d6\u5f97\u304c\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u8a18\u8ff0\u306f\u3059\u3079\u3066\u9593\u9055\u3044\u3067\u3057\u305f\u3002<br \/>\n\u5927\u5909\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u672c\u65e5\u5225\u4ef6\u3067\u305f\u307e\u305f\u307eAccess\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d6\u30e9\u30a6\u30b6\u3092\u898b\u3066\u307f\u305f\u3089\u3001\u3059\u3079\u3066\u9593\u9055\u3044\u3068\u308f\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n\u300c\u5927\u5207\u306a\u57fa\u790e\u306e\u90e8\u5206\u300d\u3067\u5927\u30a6\u30bd\u3092\u6d41\u5e03\u3057\u3066\u3057\u307e\u3044\u3001\u672c\u5f53\u306b\u7533\u3057\u8a33\u3054\u3056\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u7a74\u304c\u3042\u3063\u305f\u308a\u5165\u308a\u305f\u3044\u3067\u3059\u3002<\/b><\/span><br \/>\n\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u300d\u306b\u304a\u3051\u308bAccess\u306e\u300cForms\u300d\uff08\u3064\u307e\u308a\u300cApplication.Forms\u300d\u306e\u300cForms\u300d\uff09\u306f\u3001\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u300d\u3067\u306f\u306a\u304fExcel\u306e\u5834\u5408\u3068\u540c\u69d8\u3001\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u300d\u3067\u3057\u305f\u3002<br \/>\nAccess\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\nAccess\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d6\u30e9\u30a6\u30b6\u3067\u3001Application\u3092\u691c\u7d22\u3057\u3066\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30f3\u30d0\u3092\u898b\u308b\u3068\u3001\u4e2d\u306b\u300cForms\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u3001\u3059\u308b\u3068\u3001\u305d\u306e\u30a2\u30a4\u30b3\u30f3\u306f\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u8868\u3059\u30a2\u30a4\u30b3\u30f3\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4e00\u756a\u4e0b\u306e\u8aac\u660e\u30da\u30a4\u30f3\u306b\u3082\u300cProperty Forms As Forms\u300d\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a\u3001\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u306eForms \u306f\u3001Forms \u3068\u3044\u3046\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u304b\u3089\u3001\u7d50\u679c\u3001\u300cApplication.Forms\u300d\u306e\u300cForms\u300d\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u306f\u306a\u304f\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3057\u305f\u3002<br \/>\n\u3088\u3063\u3066Access\u3067\u3088\u304f\u66f8\u304f\u300cForms(\"\u30d5\u30a9\u30fc\u30e01\")\u300d\u3068\u304b\u300cForms(1)\u300d\u306a\u3069\u306e\u300cForms\u300d\u306f\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u300d\u3067\u306f\u306a\u304f\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u306e\u300cForms\u300d\u3067\u3042\u3063\u305f\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<br \/>\nVBE\u4e0a\u3067Forms\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u7f6e\u3044\u3066\u3001F1\u30ad\u30fc\u3092\u62bc\u3059\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u3053\u3068\u304c\u51fa\u3066\u304d\u3066\u3001\u304b\u3064\u3001Excel\u306e\u30d8\u30eb\u30d7\u306e\u3088\u3046\u306b\u300c \u00d7\u00d7\u00d7 \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f  \u00d7\u00d7\u00d7 \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3044\u307e\u3059\u300d\u3068\u660e\u793a\u7684\u306b\u66f8\u3044\u3066\u306a\u3044\u306e\u3067\u8aa4\u89e3\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u5f8c\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u5148\u306b\u898b\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<BR><br \/>\nExcel\u3084Word\u306a\u3069\u306e\u300c\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30fc\u30e0\u300d\u306e\u5404\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\uff08\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3084\u30b3\u30de\u30f3\u30c9\u30dc\u30bf\u30f3\u306a\u3069\uff09\u306e\u5834\u5408\u3082\u3001\u3053\u308c\u306b\u540c\u3058\u3067\u3059\u3002<br \/>\n\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d6\u30e9\u30a6\u30b6\u3067\u8abf\u3079\u308b\u3068\u8aac\u660e\u30da\u30a4\u30f3\u306b\u300cProperty \u00d7\u00d7\u00d7\u00d7 As \u00d7\u00d7\u00d7\u00d7 \u300d\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/b><\/span><\/p>\n<p>\u3042\u3068\u3001\u306a\u305c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u540d\u524d\u304c\u540c\u540d\u306b\u306a\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3044\u306e\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u305d\u306e\u307b\u3046\u304c\u898b\u305f\u76ee\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3089\u3068\u3044\u3046\u5358\u7d14\u306a\u7406\u7531\u304b\u3089\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u771f\u507d\u306f\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u3055\u3093\u306b\u805e\u3044\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n<p><a name=\"lbl_169\">(02)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk04Name\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09\u203bName\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051<\/a><\/p>\n<p>\u591a\u304f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u4fdd\u6301\u3057\u3066\u3044\u3066\u3001\u305d\u306e\u8a2d\u5b9a\u5024\u3092\u8abf\u3079\u3089\u308c\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8a2d\u5b9a\u5024\u300d\u3068\u306f\u3001\u4f8b\u3048\u3070\u30e6\u30fc\u30b6\u30fc\u304c\u30b7\u30fc\u30c8\u306e\u30bf\u30d6\u3067\u4ed8\u3051\u305f\u540d\u524d\u3068\u304b\u3001\u4ed6\u65b9\u3001\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30fc\u30e0\u3084\u57cb\u8fbc\u30b0\u30e9\u30d5\u3001\u30d4\u30dc\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u7b49\u3005\u306e\u3088\u3046\u306b\u3001Excel\u304c\u81ea\u52d5\u7684\u306b\u5404\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u4ed8\u3051\u3066\u304f\u308c\u308b\u540d\u524d\u3068\u304b\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u305d\u306e\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u306e\u5024\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u3092\u3059\u308b\u3068\u304d\u30fb\u30fb\u30fb\u3064\u307e\u308a\u3001\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u300d\u3084\u300c\u90e8\u5206\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u300d\u3092\u66f8\u304f\u3068\u304d\u30fb\u30fb\u30fb\u30fb\u306b\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u305d\u306e\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u306e\u5024\u3092\u3001\u968e\u5c64\u69cb\u9020\u9806\u306b\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u95a2\u6570\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3067\u3082\u30c9\u7d20\u4eba\u304c\u4f5c\u3063\u305f\u306e\u3067\u30b7\u30e7\u30dc\u3044\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u3061\u3089\u3082Stop\u3067\u30ed\u30fc\u30ab\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u4f7f\u3063\u3066\u3001\u4e0a\u4f4d\u3084\u4e0b\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8abf\u3079\u3089\u308c\u308b\u5f62\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002\uff08\u7528\u304c\u6e08\u3093\u3060\u3089F5\u30ad\u30fc\u3067\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p>\u306a\u304a\u3001\u6ce8\u610f\u4e8b\u9805\u3067\u3059\u304c\u3001\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u4fdd\u6301\u3057\u3066\u3044\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u3042\u308b\u306e\u3067\u3001\u305d\u3046\u3044\u3046\u3082\u306e\u306f\u7a7a\u767d\u884c\u306b\u306a\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3082\u305d\u306e\u4e00\u3064\u3067\u3059\uff09<\/p>\n<p>\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u30b3\u30d4\u30da\u3057\u3066\u3001\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u3066<\/p>\n<p>? Obchk04Name<\/p>\n<p>\u3068\u66f8\u3044\u3066Enter\u3057\u3066\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3059\u308b\u3068<\/p>\n<p>Microsoft Excel<br \/>\nMicrosoft Excel<br \/>\nMicrosoft Excel<br \/>\nMicrosoft Excel<br \/>\nMicrosoft Excel<br \/>\nMicrosoft Excel<br \/>\nBook11.xls<br \/>\nSheet1<\/p>\n<p>===============================<\/p>\n<p>\u306e\u3088\u3046\u306b\u51fa\u307e\u3059\u3002<br \/>\n\u7a7a\u767d\u884c\u306fName\u3092\u6301\u3063\u3066\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u3002\uff08\u4f8b\u3048\u3070Range\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\uff09<\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\nFunction Obchk04Name()\r\n\r\n    Dim ObjTest07 As Object\r\n\r\nOn Error GoTo error1:\r\n\r\n    Set ObjTest07 = Application.Selection\r\n   \r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Parent.Name\r\n    Debug.Print ObjTest07.Parent.Name\r\n    Debug.Print ObjTest07.Name\r\n    Debug.Print \"===============================\"\r\n    \r\n    Stop\r\n    \r\n    Set ObjTest07 = Nothing\r\n\r\nExit Function\r\n\r\nerror1:\r\n   \r\n    Debug.Print \"\"\r\n    Resume Next\r\n\r\nEnd Function\r\n\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_234\">(03)\u3059\u3079\u3066\u306e\u4e0a\u4f4d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3092\u4e00\u89a7\u8868\u793a\uff08\u300cObchk05Index\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09\u203bIndex\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6301\u3064\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u3051<\/a><\/p>\n<p>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u300d\u3084\u300c\u90e8\u5206\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u300d\u3092\u66f8\u304f\u3068\u304d\u306b\u3001\u300cName\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u304c\u4f7f\u3048\u305a\u306b\u3001\u300cIndex\u30d7\u30ed\u30d1\u30c6\u30a3\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\uff09\u300d\u3057\u304b\u4f7f\u3048\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u305d\u3046\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u756a\u53f7\u3092\u968e\u5c64\u69cb\u9020\u8fbc\u307f\u3067\u3001\u8abf\u3079\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u300cIndex\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u3092\u4fdd\u6301\u3057\u3066\u3044\u306a\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3068\u3066\u3082\u591a\u3044\u306e\u3067\u3001\u304b\u306a\u308a\u306e\u884c\u304c\u7a7a\u767d\u884c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u300c? Obchk05Index\u300d\u3068\u66f8\u3044\u3066Enter\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7a7a\u767d\u304c\u305f\u304f\u3055\u3093\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3067\u3082\u6570\u5b57\u304c\u51fa\u308c\u3070\u4f55\u304b\u306e\u5f79\u306b\u7acb\u3064\u3053\u3068\u3082\u5c11\u306a\u304f\u306a\u3044\u306e\u3067\u3001\u305d\u308c\u306f\u305d\u308c\u3067\u3042\u308a\u304c\u305f\u304f\u4f7f\u308f\u305b\u3066\u3082\u3089\u3044\u307e\u3059\u3002<\/p>\n<p>? Obchk05Index<\/p>\n<p> 2 <\/p>\n<p>===============================<\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\nFunction Obchk05Index()\r\n\r\n    Dim ObjTest08 As Object\r\n\r\nOn Error GoTo error1:\r\n\r\n    Set ObjTest08 = Application.Selection\r\n   \r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Parent.Index\r\n    Debug.Print ObjTest08.Parent.Index\r\n    Debug.Print ObjTest08.Index\r\n    Debug.Print \"===============================\"\r\n    \r\n    Stop\r\n    \r\n    Set ObjTest08 = Nothing\r\n\r\nExit Function\r\n\r\nerror1:\r\n   \r\n    Debug.Print \"\"\r\n    Resume Next\r\n\r\nEnd Function\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<a name=\"lbl_283\">(04)\u8272\u306e\u6570\u5024\u3092\u300c\u8d64\u30fb\u7dd1\u30fb\u9752\u300d\u306e\u6570\u5024\u306b\u5909\u63db\u3059\u308b\uff08\u300cGetIntByRGB\u300d\u3068\u3044\u3046\u81ea\u4f5c\u95a2\u6570\uff09<\/a><\/p>\n<pre class=\"lang:default decode:true \">\r\n'\r\n'\r\n\r\nFunction GetIntByRGB(ColoerNum As Variant)\r\n\r\n    Dim Red     As Variant\r\n    Dim Green   As Variant\r\n    Dim Blue    As Variant\r\n    \r\n    Red = ColoerNum Mod 256\r\n    Green = Int(ColoerNum \/ 256) Mod 256\r\n    Blue = Int(ColoerNum \/ 256 \/ 256)\r\n    \r\n    Debug.Print \"\u8d64=\" & Red\r\n    Debug.Print \"\u7dd1=\" & Green\r\n    Debug.Print \"\u9752=\" & Blue\r\n\r\n\r\nEnd Function\r\n\r\n\r\n'\r\n'\r\n<\/pre>\n<p><SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><br \/>\n<SPAN>\u3000\u3000<\/SPAN><\/p>\n","protected":false},"excerpt":{"rendered":"\u25cf Access2000VBA\u30fbExcel2000VBA\u72ec\u5b66\uff5e\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u4f7f\u3046\u81ea\u4f5c\u95a2\u6570 \u2605 \uff5eCurrent\u7121\u7701\u7565\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f0f\u8a18\u8ff0\uff5e \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 ...","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\/1443"}],"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=1443"}],"version-history":[{"count":0,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/posts\/1443\/revisions"}],"wp:attachment":[{"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/media?parent=1443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/euc-access-excel-db.com\/tips\/wp-json\/wp\/v2\/categories?post=1443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}