{"id":228,"date":"2025-02-01T05:19:17","date_gmt":"2025-01-31T20:19:17","guid":{"rendered":"https:\/\/anbtksh.com\/?p=228"},"modified":"2025-02-01T05:19:18","modified_gmt":"2025-01-31T20:19:18","slug":"%e8%a4%87%e6%95%b0%e9%81%95%e3%81%86%e5%85%83%e3%81%8b%e3%82%89%e9%a3%9b%e3%82%93%e3%81%a7%e3%81%8d%e3%81%a6%e3%82%82%e5%85%83%e3%81%b8%e6%88%bb%e3%82%8c%e3%82%8b%e3%83%9e%e3%82%af%e3%83%ad%e9%a3%9b","status":"publish","type":"post","link":"https:\/\/anbtksh.com\/?p=228","title":{"rendered":"\u8907\u6570\u9055\u3046\u5143\u304b\u3089\u98db\u3093\u3067\u304d\u3066\u3082\u5143\u3078\u623b\u308c\u308b\u30de\u30af\u30ed+\u98db\u3073\u5148\u306f\u6587\u5b57\u5217\u691c\u7d22\u3067\u30d2\u30c3\u30c8\u3057\u305f\u5148\u3060\u304b\u3089\u3001\u7de8\u96c6\u3067\u4f4d\u7f6e\u304c\u5909\u308f\u3063\u3066\u3082OK\uff01\uff08\u305f\u3060\u3057\u540c\u3058\u30b7\u30fc\u30c8\u5185\uff09"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Dim HyperlinkStack As Collection &#8216;\u30de\u30af\u30ed\u5916\u3067\u8a2d\u5b9a<br>Dim ShapeAddressStack As Collection<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sub InitializeHyperlinkStack()<br>Set HyperlinkStack = New Collection<br>Set ShapeAddressStack = New Collection<br>End Sub<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sub StoreHyperlink() &#8216;\u98db\u3093\u3067\u304f\u308b\u5143\u306e\u30dc\u30bf\u30f3\u306b\u767b\u9332\u3059\u308b\u30de\u30af\u30ed<br>If HyperlinkStack Is Nothing Then InitializeHyperlinkStack<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dim foundCell As Range\nDim searchString As String\nsearchString = \"AAA()\" ' \u691c\u7d22\u3057\u305f\u3044\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\n\n' \u30b7\u30fc\u30c8\u5185\u3092\u691c\u7d22\nSet foundCell = ActiveSheet.Cells.Find(What:=searchString, LookAt:=xlPart, MatchCase:=False)\n\n' \u898b\u3064\u304b\u3063\u305f\u5834\u5408\u3001\u30a2\u30c9\u30ec\u30b9\u3092\u30b9\u30bf\u30c3\u30af\u306b\u8ffd\u52a0\u3057\u3066\u30b8\u30e3\u30f3\u30d7\nIf Not foundCell Is Nothing Then\n    ShapeAddressStack.Add ActiveSheet.Shapes(Application.Caller).TopLeftCell.Address\n    foundCell.Select\nElse\n    MsgBox \"\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u5217\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002\"\nEnd If<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">End Sub<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sub HyperlinkBack() &#8216;\u623b\u308b\u30dc\u30bf\u30f3\u306b\u767b\u9332\u3059\u308b\u30de\u30af\u30ed<br>On Error GoTo ErrHandler<br>If ShapeAddressStack.Count &gt; 0 Then<br>Range(ShapeAddressStack(ShapeAddressStack.Count)).Select<br>ShapeAddressStack.Remove ShapeAddressStack.Count<br>Else<br>MsgBox &#8220;\u5143\u306e\u56f3\u5f62\u306e\u5834\u6240\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002&#8221;<br>End If<br>Exit Sub<br>ErrHandler:<br>MsgBox &#8220;\u5143\u306e\u56f3\u5f62\u306e\u5834\u6240\u306b\u623b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002&#8221;<br>End Sub<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dim HyperlinkStack As Collection &#8216;\u30de\u30af\u30ed\u5916\u3067\u8a2d\u5b9aDim ShapeAddressStack As Collection Sub InitializeHyperlinkStac &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/anbtksh.com\/?p=228\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u8907\u6570\u9055\u3046\u5143\u304b\u3089\u98db\u3093\u3067\u304d\u3066\u3082\u5143\u3078\u623b\u308c\u308b\u30de\u30af\u30ed+\u98db\u3073\u5148\u306f\u6587\u5b57\u5217\u691c\u7d22\u3067\u30d2\u30c3\u30c8\u3057\u305f\u5148\u3060\u304b\u3089\u3001\u7de8\u96c6\u3067\u4f4d\u7f6e\u304c\u5909\u308f\u3063\u3066\u3082OK\uff01\uff08\u305f\u3060\u3057\u540c\u3058\u30b7\u30fc\u30c8\u5185\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anbtksh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":1,"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/anbtksh.com\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/anbtksh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anbtksh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anbtksh.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}