{"id":4764,"date":"2014-08-22T11:55:32","date_gmt":"2014-08-22T02:55:32","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4764"},"modified":"2014-08-22T11:55:32","modified_gmt":"2014-08-22T02:55:32","slug":"a1%e3%82%bb%e3%83%ab%e3%82%92%e9%81%b8%e6%8a%9e%e3%81%97%e3%81%a6%e3%81%8b%e3%82%89%e4%bf%9d%e5%ad%98%e3%81%99%e3%82%8bexcel%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4764","title":{"rendered":"A1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/yu_tang_\" title=\"YU-TANG (yu_tang_)\u3055\u3093\u306fTwitter\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\" target=\"_blank\">@yu_tang_<\/a>\u3055\u3093\u306e\u30c4\u30a4\u30fc\u30c8\u3067\u9762\u767d\u3044\u3082\u306e\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<blockquote class=\"twitter-tweet\" lang=\"ja\">\n<p>Excel \u306b\u300cA1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308b\u300d\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092\u3064\u3051\u306a\u3044\u3053\u3068\u3067\u3001MS \u306f\u96c7\u7528\u5275\u51fa\u306b\u7d76\u5927\u306a\u8ca2\u732e\u3092\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>&mdash; YU-TANG (@yu_tang_) <a href=\"https:\/\/twitter.com\/yu_tang_\/statuses\/502187837278928897\">2014, 8\u6708 20<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u5fae\u5999\u306a\u4f4d\u7f6e\u306e\u30bb\u30eb\u304c\u9078\u629e\u3055\u308c\u305f\u72b6\u614b\u3067\u30d6\u30c3\u30af\u304c\u958b\u304b\u308c\u308b\u3068\u3001\u4f55\u304b\u3082\u3084\u3063\u3068\u3059\u308b\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001A1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3068\u3001\u305f\u3057\u304b\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30fb\u30fb\u304c\u3001Excel\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u773a\u3081\u3066\u307f\u3066\u3082\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">Excel A1\u30bb\u30eb \u9078\u629e \u4fdd\u5b58<\/span>\u300d\u3068\u3044\u3063\u305f\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22\u3057\u3066\u307f\u3066\u3082\u3001\u305d\u308c\u3089\u3057\u3044\u60c5\u5831\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u6a19\u6e96\u6a5f\u80fd\u3067\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306a\u3089\u3070\u4f5c\u3063\u3066\u3057\u307e\u304a\u3046\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u65e9\u901f\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1.zip\" title=\"A1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/dl_button.gif\" alt=\"dl_button\" width=\"24\" height=\"10\" class=\"alignnone size-full wp-image-4769\" \/>&nbsp;A1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308bExcel\u30a2\u30c9\u30a4\u30f3<\/a><\/p>\n<p>\u4e0a\u8a18\u30ea\u30f3\u30af\u304b\u3089zip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3059\u308b\u3068\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">SelectCellA1.xlam<\/span>\u300d\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092Excel\u306e\u30a2\u30c9\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0\u306b\u30b3\u30d4\u30fc\u3057(\u540c\u68b1\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30a2\u30c9\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304f.vbs<\/span>\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u30a2\u30c9\u30a4\u30f3\u30d5\u30a9\u30eb\u30c0\u304c\u958b\u304d\u307e\u3059)\u3001Excel\u3067\u30a2\u30c9\u30a4\u30f3\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3080\u3068\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306b\u30af\u30a4\u30c3\u30af \u30a2\u30af\u30bb\u30b9 \u30c4\u30fc\u30eb \u30d0\u30fc\u306b\u30c8\u30b0\u30eb \u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1_01.jpg\" alt=\"SelectCellA1_01\" width=\"392\" height=\"259\" class=\"alignnone size-full wp-image-4765\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1_01.jpg 392w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1_01-300x198.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/SelectCellA1_01-220x146.jpg 220w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><\/p>\n<p>\u3053\u306e\u30c8\u30b0\u30eb \u30dc\u30bf\u30f3\u3092\u300c<span style=\"color: #ff0000; font-weight: bold;\">ON<\/span>\u300d\u306b\u3057\u3066\u304a\u304f\u3068\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u30d6\u30c3\u30af\u3092\u9589\u3058\u305f\u3068\u304d\u306b\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3067A1\u30bb\u30eb\u304c\u9078\u629e\u3055\u308c\u305f\u72b6\u614b\u3067\u4fdd\u5b58<\/span>\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>A1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u4fdd\u5b58\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f\u3001\u30c8\u30b0\u30eb \u30dc\u30bf\u30f3\u3092\u300c<span style=\"color: #ff0000; font-weight: bold;\">OFF<\/span>\u300d\u306b\u3057\u3066\u304a\u3051\u3070\u3001\u30a2\u30c9\u30a4\u30f3\u306f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u51fa\u756a\u304c\u3042\u308b\u3093\u3060\u304b\u7121\u3044\u3093\u3060\u304b\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u30a2\u30c9\u30a4\u30f3\u3067\u3059\u304c\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u30a2\u30c9\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30a2\u30c9\u30a4\u30f3\u306e\u6a5f\u80fd\u3092\u624b\u76f4\u3057\u3057\u305f\u3044\u65b9\u306f\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u81ea\u7531\u306b\u6539\u5909\u3057\u3066\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30fbThisWorkbook<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate WithEvents App As Excel.Application\r\nPrivate flg As Boolean\r\n\r\nPublic Sub rbnSelectCellA1_onLoad(ribbon As IRibbonUI)\r\n  flg = False\r\n  Set App = Application\r\nEnd Sub\r\n\r\nPublic Sub tgbSelectCellA1_getPressed(control As IRibbonControl, ByRef returnedVal)\r\n  returnedVal = flg\r\nEnd Sub\r\n\r\nPublic Sub tgbSelectCellA1_onAction(control As IRibbonControl, pressed As Boolean)\r\n  flg = pressed\r\nEnd Sub\r\n\r\nPrivate Sub SelectCellA1()\r\n'\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3067A1\u30bb\u30eb\u3092\u9078\u629e\r\n  Dim ws As Excel.Worksheet\r\n  Dim tmp As Excel.Worksheet\r\n  \r\n  On Error Resume Next\r\n  Set tmp = ActiveWorkbook.ActiveSheet\r\n  For Each ws In ActiveWorkbook.Worksheets\r\n    Application.Goto ws.Cells(1, 1), True\r\n  Next\r\n  tmp.Select\r\nEnd Sub\r\n\r\nPrivate Sub App_WorkbookBeforeClose(ByVal Wb As Workbook, Cancel As Boolean)\r\n  '\u672a\u4fdd\u5b58\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u8996\r\n  If Len(Trim(Wb.Path)) &gt; 0 Then\r\n    With CreateObject(&quot;Scripting.FileSystemObject&quot;)\r\n      Select Case LCase(.GetExtensionName(Wb.FullName))\r\n        '\u30a2\u30c9\u30a4\u30f3\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u8996\r\n        Case &quot;xla&quot;, &quot;xlam&quot;\r\n        Case Else\r\n          If flg = True Then\r\n            SelectCellA1\r\n            Wb.Save\r\n          End If\r\n      End Select\r\n    End With\r\n  End If\r\nEnd Sub<\/pre>\n<p><strong>\u30fb\u30ea\u30dc\u30f3XML<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;customUI onLoad=&quot;ThisWorkbook.rbnSelectCellA1_onLoad&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/2006\/01\/customui&quot;&gt;\r\n  &lt;ribbon&gt;\r\n    &lt;tabs&gt;\r\n      &lt;tab id=&quot;tabSelectCellA1&quot; label=&quot;SelectCellA1&quot; visible=&quot;false&quot;&gt;\r\n        &lt;group id=&quot;grpSelectCellA1&quot; label=&quot;SelectCellA1&quot;&gt;\r\n          &lt;toggleButton id=&quot;tgbSelectCellA1&quot; label=&quot;SelectCellA1&quot; screentip=&quot;\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3067\u30bb\u30ebA1\u3092\u9078\u629e&quot; supertip=&quot;\u3053\u306e\u30dc\u30bf\u30f3\u3092ON\u306b\u3059\u308b\u3068\u3001\u30d6\u30c3\u30af\u3092\u9589\u3058\u308b\u6642\u306b\u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3067\u30bb\u30ebA1\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002&quot; imageMso=&quot;SelectCell&quot; onAction=&quot;ThisWorkbook.tgbSelectCellA1_onAction&quot; getPressed=&quot;ThisWorkbook.tgbSelectCellA1_getPressed&quot; \/&gt;\r\n        &lt;\/group&gt;\r\n      &lt;\/tab&gt;\r\n    &lt;\/tabs&gt;\r\n  &lt;\/ribbon&gt;\r\n&lt;\/customUI&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"@yu_tang_\u3055\u3093\u306e\u30c4\u30a4\u30fc\u30c8\u3067\u9762\u767d\u3044\u3082\u306e\u304c\u3042\u308a\u307e\u3057\u305f\u3002 Excel \u306b\u300cA1\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4fdd\u5b58\u3059\u308b\u300d\u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092\u3064\u3051\u306a\u3044\u3053\u3068\u3067\u3001MS \u306f\u96c7\u7528\u5275\u51fa\u306b\u7d76\u5927\u306a\u8ca2\u732e\u3092\u3057\u3066\u3044\u308b\u3002 &mdash; YU-TANG  [&hellip;]","protected":false},"author":1,"featured_media":7130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,48,1],"tags":[],"class_list":["post-4764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-ribbon"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Ribbon.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1eQ","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4764"}],"version-history":[{"count":4,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4764\/revisions"}],"predecessor-version":[{"id":4771,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4764\/revisions\/4771"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7130"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}