{"id":4326,"date":"2015-11-23T09:24:10","date_gmt":"2015-11-23T00:24:10","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4326"},"modified":"2016-01-12T22:29:57","modified_gmt":"2016-01-12T13:29:57","slug":"recentfile","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/recentfile\/","title":{"rendered":"\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8,RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff09"},"content":{"rendered":"<h2>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8,RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff09<\/h2>\n<div class=\"m30-l\">\n<p><strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u306f\u3001\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u3057\u3001<strong>RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong>\u306e\u30e1\u30f3\u30d0\u30fc\u3067\u3059\u3002<strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<strong>RecentFiles\uff08index\uff09\u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5f15\u6570 <em>index<\/em> \u306b\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1cRecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>RecentFiles<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1cRecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>RecentFiles<\/strong>[ .<strong>Item<\/strong> ] ( <em>index<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>Application \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>index&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d5\u30a1\u30a4\u30eb\u756a\u53f7\u3092\u8868\u3059\u9577\u6574\u6570\u578b\uff08Long\uff09\u306e\u5024\uff08 1 \u4ee5\u964d\uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\uff08\u203b 1 \u304c\u6700\u3082\u6700\u8fd1\u306b\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff09<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fb\u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3>RecentFiles.Count \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306b\u542b\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Count<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>RecentFiles.Maximum \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u5185\u306e\u6700\u5927\u30d5\u30a1\u30a4\u30eb\u6570\u3092\u53d6\u5f97\u307e\u305f\u306f\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4f7f\u7528\u3067\u304d\u308b\u7bc4\u56f2\u306f\u30010 \uff5e 50 \u306e\u5024\u3067\u3059\u3002\u9577\u6574\u6570\u578b\uff08Long\uff09\u306e\u5024\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u53d6\u5f97\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Maximum<\/strong><\/p>\n<p>    <span class=\"red\"><strong>\uff1c\u8a2d\u5b9a\uff1e<\/strong><\/span><br \/>\n    <em>object<\/em>.<strong>Maximum<\/strong> = <em>long<\/em><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>long&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u6700\u5927\u30d5\u30a1\u30a4\u30eb\u6570\u3092 0 \uff5e 50 \u306e\u7bc4\u56f2\u306e\u9577\u6574\u6570\u578b\uff08Long\uff09\u306e\u5024\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>RecentFiles.Add \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Add<\/strong> ( <em>name<\/em> )<\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>name&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6587\u5b57\u5217\u3067\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fb\u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<br \/>\n<h3>RecentFile.Name \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u4e2d\u306e\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Name<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>RecentFile.Path \u30d7\u30ed\u30d1\u30c6\u30a3<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u4e2d\u306e\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Path<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>RecentFile.Delete \u30e1\u30bd\u30c3\u30c9<\/h3>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Delete<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>RecentFile.Open \u30e1\u30bd\u30c3\u30c9<\/h3>\n<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u4e2d\u306e\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<br \/>\n    <strong>Open \u30e1\u30bd\u30c3\u30c9<\/strong> \u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/bookopen\/\">\u30d6\u30c3\u30af\u3092\u958b\u304f\uff08Open \u30e1\u30bd\u30c3\u30c9\uff09<\/a> \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Open<\/strong><\/p><\/div>\n<br \/>\n<h4>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h4>\n<div class=\"m30-l\">\n<ul style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;\">\n<li>object&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u5bfe\u8c61\u3068\u306a\u308b <span class=\"red\"><strong>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30fbRecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u4f7f\u7528\u4f8b<\/h2>\n<div class=\"m30-l\">\n<h3 id=\"vba_sample\">\u30b5\u30f3\u30d7\u30ebVBA\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"lang:vb mark:0 decode:true \" title=\"RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30fbRecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_RecentFile()\r\n    \r\n    '\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u306e\u4e2d\u304b\u3089 5 \u756a\u76ee\u306e\u30d6\u30c3\u30af\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u8868\u793a\r\n    MsgBox Application.RecentFiles.Item(5).Name\r\n    \r\nEnd Sub\r\n\u3000\r\n  <\/pre>\n<br \/>\n<h3>\u5b9f\u884c\u7d50\u679c<\/h3>\n<p><a href=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/11\/bookrecentfile01.jpg?ssl=1\" rel=\"lightbox[4326]\"><img loading=\"lazy\" src=\"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/11\/bookrecentfile01.jpg?resize=308%2C155&#038;ssl=1\" alt=\"RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30fbRecentFiles \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\" width=\"308\" height=\"155\" class=\"alignnone size-full wp-image-4327\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08RecentFile \u30aa\u30d6\u30b8\u30a7\u30af\u30c8,RecentFiles &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4327,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[357],"tags":[301,670,671,63,38,360],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/11\/bookrecentfile01.jpg?fit=308%2C155&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-17M","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4326"}],"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=4326"}],"version-history":[{"count":8,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4326\/revisions"}],"predecessor-version":[{"id":4893,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4326\/revisions\/4893"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4327"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}