{"id":3751,"date":"2015-09-21T09:03:42","date_gmt":"2015-09-21T00:03:42","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=3751"},"modified":"2015-09-21T09:03:42","modified_gmt":"2015-09-21T00:03:42","slug":"hyperlink2","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/hyperlink2\/","title":{"rendered":"\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\uff08Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9\uff09"},"content":{"rendered":"<h2>Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9<\/h2>\n<div class=\"m30-l\">\n<p><strong>Hyperlinks \u30b3\u30ec\u30af\u30b7\u30e7\u30f3<\/strong> \u306e\u30e1\u30f3\u30d0\u30fc\u3067\u3059\u3002\u5358\u4f53\u306e <strong>Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001<strong>Hyperlinks(index) \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5f15\u6570 <em>index<\/em> \u306b\u306f\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u756a\u53f7\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<strong>Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/hyperlink\/\">\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\uff08Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09<\/a> \u3001<strong>Hyperlinks<\/strong>\u306b\u95a2\u3057\u3066\u306f\u3001<a href=\"https:\/\/excelwork.info\/excel\/hyperlinks\/\">\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\uff08Hyperlinks \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>Hyperlink.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>Hyperlink<\/strong>.<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>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u307e\u305f\u306f\u3001<span class=\"red\"><strong>Shape \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u305d\u306e\u6642\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u305f\u66f8\u5f0f\u3082\u6a19\u6e96\u306e\u72b6\u614b\u306b\u623b\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<br \/>\n<p class=\"caution4\">\u30ea\u30f3\u30af\u306e\u307f\u3092\u524a\u9664\u3057\u305f\u3044\u5834\u5408\u3001<strong>ClearHyperlinks \u30e1\u30bd\u30c3\u30c9<\/strong> \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n      \u3000\u3000<br \/>\n      <strong>\u3010\u66f8\u5f0f\u3011<\/strong>\u3000<em>object<\/em>.<strong>ClearHyperlinks<\/strong><br \/>\n      \u3000\u3000<br \/>\n      <em>object<\/em> \u2026 \u5bfe\u8c61\u3068\u306a\u308b <strong>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n      \u5b9f\u884c\u3059\u308b\u3068\u3001\u66f8\u5f0f\u306f\u305d\u306e\u307e\u307e\u3067\u3001\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u306e\u307f\u304c\u524a\u9664\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001Excel 2010 \u4ee5\u964d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u307f\u3057\u304b\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<\/p><\/div>\n<h3>Hyperlink.Follow \u30e1\u30bd\u30c3\u30c9<\/h3>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Hyperlink<\/strong>.<strong>Follow<\/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>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u307e\u305f\u306f\u3001<span class=\"red\"><strong>Shape \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u958b\u304d\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<br \/>\n<h3>Hyperlink.CreateNewDocument \u30e1\u30bd\u30c3\u30c9<\/h3>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>Hyperlink<\/strong>.<strong>CreateNewDocument<\/strong> ( <em>filename<\/em>, <em>editnow<\/em>, <em>overwrite<\/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>Range \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span> \u307e\u305f\u306f\u3001<span class=\"red\"><strong>Shape \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>filename&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;\u65b0\u898f\u306b\u4f5c\u6210\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>editnow&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u5f8c\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>overwrite&nbsp;&nbsp;\u30fb\u30fb\u30fb&nbsp;&nbsp;<strong>True<\/strong> \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u3059\u3067\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<strong>False<\/strong> \u3092\u6307\u5b9a\u3057\u305f\u6642\u3001\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\uff08\u7701\u7565\u4e0d\u53ef\uff09\u3002<\/li>\n<li>\u5b9f\u884c\u3059\u308b\u3068\u3001\u5f15\u6570 <em>filename<\/em> \u3067\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u5f15\u6570 <em>overwrite<\/em> \u304c\u3001<strong>True<\/strong> \u306e\u3068\u304d\u3001\u540c\u540d\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002\u307e\u305f\u3001\u5f15\u6570 <em>editnow<\/em> \u304c\u3001<strong>True<\/strong> \u306e\u3068\u304d\u306f\u3001\u305d\u306e\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u3063\u3066\u30ea\u30f3\u30af\u5148\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \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=\"Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample01_Hyperlink()\r\n\r\n    Dim myPath As String, myFileName As String\r\n    Dim w As Worksheet\r\n    \r\n    '\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30d1\u30b9\u3092\u53d6\u5f97\r\n    myPath = CreateObject(\"WScript.Shell\").specialfolders(\"Desktop\")\r\n    myFileName = myPath & \"\\TEST01.txt\"\r\n\r\n    Set w = Worksheets(\"Sheet1\")\r\n    \r\n    \r\n    '\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\r\n    w.Hyperlinks.Add Anchor:=Range(\"B3\"), _\r\n                     Address:=myFileName, _\r\n                     TextToDisplay:=\"\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30ea\u30f3\u30af\"\r\n    \r\n    '\u30ea\u30f3\u30af\u7528\u306e\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\uff08TEXT01.txt\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\r\n    Range(\"B3\").Hyperlinks(1).CreateNewDocument Filename:=myFileName, _\r\n                                                editnow:=False, _\r\n                                                overwrite:=True\r\n    \r\n    '\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\uff08TEXT01.txt\uff09\u3092\u958b\u304d\u307e\u3059\r\n    Range(\"B3\").Hyperlinks(1).Follow\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\/09\/hyperlink02.jpg?ssl=1\" rel=\"lightbox[3751]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/hyperlink02.jpg?resize=580%2C343&#038;ssl=1\" alt=\"Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u4f7f\u7528\u4f8b\" width=\"580\" height=\"343\" class=\"alignnone size-large wp-image-3752\" srcset=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/hyperlink02.jpg?resize=580%2C343&amp;ssl=1 580w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/hyperlink02.jpg?resize=400%2C236&amp;ssl=1 400w, https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/hyperlink02.jpg?w=899&amp;ssl=1 899w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/>\n","protected":false},"excerpt":{"rendered":"<p>Hyperlink \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30e1\u30bd\u30c3\u30c9 Hyperlinks \u30b3\u30ec\u30af\u30b7\u30e7\u30f3  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3783,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[268],"tags":[556,270,63,38,269],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/09\/hyperlink02-580x3431.jpg?fit=580%2C343&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-Yv","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3751"}],"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=3751"}],"version-history":[{"count":4,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3751\/revisions"}],"predecessor-version":[{"id":3782,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/3751\/revisions\/3782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/3783"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=3751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=3751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=3751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}