{"id":2837,"date":"2015-07-31T08:03:48","date_gmt":"2015-07-30T23:03:48","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=2837"},"modified":"2015-07-31T08:03:48","modified_gmt":"2015-07-30T23:03:48","slug":"gotopreviousselections","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/gotopreviousselections\/","title":{"rendered":"\u5225\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\uff08Goto \u30e1\u30bd\u30c3\u30c9 \uff0f PreviousSelections \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>Goto \u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p>\u6b21\u306e\u4f8b\u306e\u3088\u3046\u306b\u30011 \u884c\u3067\u3001<strong>Activate \u30e1\u30bd\u30c3\u30c9<\/strong> \u3084 <strong>Select \u30e1\u30bd\u30c3\u30c9<\/strong> \u3067\u3001\u5225\u30b7\u30fc\u30c8\u306e\u30bb\u30eb\u3092\u9078\u629e\u3057\u3088\u3046\u3068\u3059\u308b\u3068 <span class=\"red\"><strong>\u30a8\u30e9\u30fc <\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>    \u3000\uff08\u4f8b\uff09\u73fe\u5728\u306f\u3001\u300cSheet1\u300d\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u72b6\u614b<br \/>\n    \u3000\u3000Worksheets(&#8220;Sheet2&#8221;).Range(&#8220;A1&#8221;).Activate\u3000\u3000\u3000\u3000\uff08\u21d2 \u30a8\u30e9\u30fc\uff09<br \/>\n    \u3000\u3000Worksheets(&#8220;Sheet2&#8221;).Range(&#8220;A1&#8221;).Select\u3000\u3000\u3000\u3000\u3000\uff08\u21d2 \u30a8\u30e9\u30fc\uff09<\/p>\n<p>    <strong>Goto \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u3068\u3053\u308c\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>    \u3000\u3000Application.Goto Worksheets(&#8220;Sheet2&#8221;).Range(&#8220;A1&#8221;)<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Goto<\/strong> \uff08 <em>reference<\/em> ,<em>scroll<\/em> \uff09<\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\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>reference&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u79fb\u52d5\u5148\u306e<strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u7701\u7565\u3059\u308b\u3068\u3001\u76f4\u524d\u306b <strong>Goto \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u7528\u3057\u305f\u6642\u306e\u30bb\u30eb\u7bc4\u56f2\u3068\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>scroll&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u79fb\u52d5\u5148\u306e\u30bb\u30eb\u7bc4\u56f2\u306e\u5de6\u4e0a\u7aef\u304c\u3001\u30a6\u30a4\u30f3\u30c9\u30a6\u306e\u5de6\u4e0a\u7aef\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u307e\u3059\u3002<strong>False<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u307e\u305b\u3093\u3002\u7701\u7565\u53ef\uff08\u65e2\u5b9a\u5024\u306f\u3001<strong>False<\/strong>\uff09\u3002<\/li>\n<\/ul>\n<br \/><br \/>\n<p class=\"caution4\"><strong>Goto \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u5b9f\u884c\u3059\u308b\u3068<span class=\"red\">\u5b9f\u884c\u76f4\u524d\u306b\u9078\u629e\u3057\u3066\u3044\u308b\u30bb\u30eb\u7bc4\u56f2\uff08\u79fb\u52d5\u524d\u306e\u30bb\u30eb\u7bc4\u56f2\uff09<\/span>\u304c\u3001<span class=\"red\"><strong>PreviousSelections \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/span>\u306e 1 \u756a\u76ee\u306e\u8981\u7d20\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"caution4\"><strong>Goto \u30e1\u30bd\u30c3\u30c9<\/strong>\u3067\u3001\u5f15\u6570 <em>reference<\/em> \u3092\u7701\u7565\u3057\u3066\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001<span class=\"red\"><strong>PreviousSelections \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong><\/span>\u306e 1 \u756a\u76ee\u306e\u8981\u7d20\u3078\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<\/p><\/div>\n<\/div>\n<br \/><br \/>\n<h2>PreviousSelections \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p><strong>[\u540d\u524d] \u30dc\u30c3\u30af\u30b9<\/strong>\u3092\u4f7f\u3063\u3066\u30bb\u30eb\u307e\u305f\u306f\u30bb\u30eb\u7bc4\u56f2\u306b\u30b8\u30e3\u30f3\u30d7\u3057\u305f\u308a\u3001<strong>[\u7de8\u96c6] \u30e1\u30cb\u30e5\u30fc\u306e [\u30b8\u30e3\u30f3\u30d7]<\/strong> \u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u3001\u30de\u30af\u30ed\uff08VBA\uff09\u306e <strong>Goto \u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u547c\u3073\u51fa\u3057\u305f\u308a\u3059\u308b\u3068\u3001<span class=\"red\">\u79fb\u52d5\u524d\u306e\u30bb\u30eb\u7bc4\u56f2<\/span>\u304c<span class=\"red\"><strong>\u914d\u5217\u306e 1 \u756a\u76ee\u306e\u8981\u7d20\u3068\u3057\u3066\u8ffd\u52a0<\/strong><\/span>\u3055\u308c\u307e\u3059\u3002\u914d\u5217\u306e\u4ed6\u306e\u8981\u7d20\u306f\u30011 \u3064\u305a\u3064\u5f8c\u308d\u306b\u9001\u3089\u308c\u307e\u3059\u3002\u6700\u5927 4 \u500b\u306e\u30bb\u30eb\u7bc4\u56f2\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>PreviousSelections<\/strong> ( <em>index<\/em> )<\/p><\/div>\n<br \/>\n<h3>\u5f15\u6570\u30fb\u623b\u308a\u5024<\/h3>\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;\u914d\u5217\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\uff08 1 \uff5e 4 \uff09\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/><br \/><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Goto \u30e1\u30bd\u30c3\u30c9 \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=\"Goto \u30e1\u30bd\u30c3\u30c9 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_Goto()\r\n\r\n\r\n    Worksheets(\"Sheet1\").Activate\r\n    Range(\"A1\").Activate\r\n    \r\n    \r\n    'Goto \u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30b7\u30fc\u30c8\u300cSheet2\u300d\u306e\u30bb\u30eb\u300cB2\u300d\u3078\u79fb\u52d5\r\n    Application.Goto Worksheets(\"Sheet2\").Range(\"B2\")\r\n    \r\n    'Goto \u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30bb\u30eb\u300cE100\u300d\u3078\u79fb\u52d5\uff08\u30b9\u30af\u30ed\u30fc\u30eb\u3059\u308b\uff09\r\n    Application.Goto Worksheets(\"Sheet2\").Range(\"E100\"), True\r\n    \r\n    \r\n    '\u4fdd\u5b58\u3055\u308c\u305f\u3001PreviousSelections \u306e\uff11\u756a\u76ee\u306e\u8981\u7d20\u3092\u8868\u793a\r\n    '\u6700\u5f8c\u306b Goto \u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u6642\u306e\u79fb\u52d5\u524d\u306e\u30a2\u30c9\u30ec\u30b9\uff08\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u30b7\u30fc\u30c8\u540d\u542b\u3080\uff09\r\n    MsgBox Application.PreviousSelections(1).Address(external:=True)\r\n    \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:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a.jpg?ssl=1\" rel=\"lightbox[2837]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a.jpg?resize=400%2C254&#038;ssl=1\" alt=\"Goto \u30e1\u30bd\u30c3\u30c9 \u4f8b\" width=\"400\" height=\"254\" class=\"alignnone size-medium wp-image-2839\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a.jpg?resize=400%2C254&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a.jpg?resize=580%2C368&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a.jpg?w=611&amp;ssl=1 611w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Goto \u30e1\u30bd\u30c3\u30c9 \u6b21\u306e\u4f8b\u306e\u3088\u3046\u306b\u30011 \u884c\u3067\u3001Activate \u30e1\u30bd\u30c3\u30c9 \u3084 S &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2890,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[301,455,457,270,63,38,269,456],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/07\/gotopreviousselections01a-400x2541.jpg?fit=400%2C254&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-JL","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2837"}],"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=2837"}],"version-history":[{"count":7,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2837\/revisions"}],"predecessor-version":[{"id":2889,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/2837\/revisions\/2889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/2890"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=2837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=2837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=2837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}