{"id":3933,"date":"2017-07-20T00:00:45","date_gmt":"2017-07-19T15:00:45","guid":{"rendered":"http:\/\/stuffy.dip.jp\/wordpress\/?p=3933"},"modified":"2017-07-20T00:00:45","modified_gmt":"2017-07-19T15:00:45","slug":"to-build-macro-button-on-calc-in-libreoffice","status":"publish","type":"post","link":"https:\/\/www.stuffy.site\/wordpress\/?p=3933","title":{"rendered":"LibreOffice calc \u306e\u30de\u30af\u30ed\u30dc\u30bf\u30f3"},"content":{"rendered":"<p>MS \u30aa\u30d5\u30a3\u30b9\u4e92\u63db\u306eLibreOffice calc \u3067\u3059\u304c\u3001MS Excel \u3067\u66f8\u3044\u305f\u6642\u523b\u8868\u793a\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u8aad\u307f\u8fbc\u3080\u304b\u3001\u8a66\u307f\u306b\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3957\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/Screenshot-from-2017-07-20-00-01-38.png\" alt=\"\" width=\"800\" height=\"600\" \/><\/p>\n<p>\u307e\u305a\u3001\u30bb\u30eb&#8221;A1&#8243;=GETDATE() \u3068\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u95a2\u6570\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n[\u30c4\u30fc\u30eb]-[\u30de\u30af\u30ed]-[\u30de\u30af\u30ed\u306e\u7ba1\u7406]-[LibreOffice Basic\u2026]\u304b\u3089\u5f53\u8a72\u30d6\u30c3\u30af\u306e[standard]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066[\u65b0\u898f\u4f5c\u6210] \u3067\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u30b3\u30d4\u30da\u3057\u307e\u3059\u3002<\/p>\n<pre><span style=\"font-size: 9pt;\">Option VBASupport 1\nFunction GetDate() As Date\nApplication.Calculation = xlCalculationAutomatic\nApplication.Volatile\nGetDate = Now()\nEnd Function\n\nSub clock()\nDim counter As Long, crntAdd As String\nWorksheets(\"sheet1\").Activate\nWorksheets(\"sheet1\").Range(\"A1\").Select\n\ncrntAdd = ActiveCell.address\n\nDo Until crntAdd &lt;&gt; \"$A$1\"\nIf counter Mod 1000 = 0 Then\ncounter = 0\nWorksheets(\"sheet1\").Range(\"A1\").Calculate\ncrntAdd = ActiveCell.address\nDoEvents\nEnd If\ncounter = counter + 1\nLoop\n\nEnd Sub\n\nPrivate Sub \u30d5\u30a9\u30fc\u30e0_click()\nCall clock\nEnd Sub<\/span><\/pre>\n<p>[\u8868\u793a]-[\u30c4\u30fc\u30eb\u30d0\u30fc]-[\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb]\u304b\u3089[\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30c4\u30fc\u30eb\u30d0\u30fc]\u3092\u30dd\u30a4\u30f3\u30c8\u3057\u3066\u300c\u30c4\u30fc\u30eb\u30d0\u30fc\u300d\u304b\u3089\u300c\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u300d\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3935\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-19-3.png\" alt=\"\" width=\"802\" height=\"674\" \/><\/p>\n<p>[\u30d5\u30a9\u30fc\u30e0]\u306e\u633f\u5165\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\uff08\u3061\u306a\u307f\u306b\u30dc\u30bf\u30f3\u306e\u540d\u524d\u5909\u66f4\u306f\u3001\u53f3\u30af\u30ea\u30c3\u30af\u2192\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u2192\u5168\u822c\u30bf\u30d6\u2192\u30bf\u30a4\u30c8\u30eb\u304b\u3089\u5909\u3048\u3089\u308c\u307e\u3059\u3002\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3934\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-19-5.png\" alt=\"\" width=\"802\" height=\"674\" \/><\/p>\n<p>\u300c\u30d7\u30c3\u30b7\u30e5\u30dc\u30bf\u30f3\u300d\u3068\u66f8\u304b\u308c\u305f[\u30d5\u30a9\u30fc\u30e0]\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3066[\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb]\u304b\u3089[\u30a4\u30d9\u30f3\u30c8]-[\u5b9f\u884c\u6642] \u306e[\u2026]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u5272\u308a\u5f53\u3066\u300d\u304b\u3089\u300c\u30de\u30af\u30ed\u30bb\u30ec\u30af\u30bf\u30fc\u300d\u3067[\u30d5\u30a9\u30fc\u30e0_click]\u30de\u30af\u30ed\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3941\" src=\"https:\/\/www.stuffy.site\/wordpress\/wp-content\/uploads\/2017\/07\/2017-07-19-9.png\" alt=\"\" width=\"802\" height=\"674\" \/><\/p>\n<p>\u300c\u30c7\u30b6\u30a4\u30f3\u30e2\u30fc\u30c9\u300d\u3092\u7d42\u4e86\u3057\u3066\u540d\u524d\u3092\u4ed8\u3051\u3066\u30d6\u30c3\u30af\u3092\u4fdd\u5b58\u3002[\u30d7\u30c3\u30b7\u30e5\u30dc\u30bf\u30f3]\u30d5\u30a9\u30fc\u30e0\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u6642\u8a08\u304c\u52d5\u304d\u307e\u3057\u305f\u3002<br \/>\n\u96e3\u70b9\u306f\u3001MS Excel \u306ethisworkbook.Activate \u304c\u4f7f\u3048\u306a\u3044\u3053\u3068\u3084\u3001Workbook_Open \u3068\u3044\u3046\u540d\u524d\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u4f5c\u308b\u3068\u52d5\u4f5c\u305b\u305a\u300c\u30de\u30af\u30ed\u30bb\u30ec\u30af\u30bf\u30fc\u300d\u304b\u3089\u767b\u9332\u3059\u308b\u3053\u3068\u306a\u3069\u4e0d\u81ea\u7531\u3092\u611f\u3058\u307e\u3057\u305f\u3002<br \/>\n\u53c2\u8003URL:<\/p>\n<p>http:\/\/calibreblo.blogspot.jp\/2011\/05\/blog-post.html    \t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MS \u30aa\u30d5\u30a3\u30b9\u4e92\u63db\u306eLibreOffice calc \u3067\u3059\u304c\u3001MS Excel \u3067\u66f8\u3044\u305f\u6642\u523b\u8868\u793a\u306e\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u8aad\u307f\u8fbc\u3080\u304b\u3001\u8a66\u307f\u306b\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u307e\u305a\u3001\u30bb\u30eb&#8221;A1&#8243;=GETDATE() \u3068\u30e6\u30fc &hellip; <a href=\"https:\/\/www.stuffy.site\/wordpress\/?p=3933\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">LibreOffice calc \u306e\u30de\u30af\u30ed\u30dc\u30bf\u30f3<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,3,5],"tags":[],"class_list":["post-3933","post","type-post","status-publish","format-standard","hentry","category-excel","category-linux","category-software"],"_links":{"self":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3933"}],"version-history":[{"count":0,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3933\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuffy.site\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}