{"id":4459,"date":"2016-01-13T09:13:33","date_gmt":"2016-01-13T00:13:33","guid":{"rendered":"http:\/\/excelwork.info\/excel\/?p=4459"},"modified":"2016-01-13T09:13:33","modified_gmt":"2016-01-13T00:13:33","slug":"vbe_hasvbproject","status":"publish","type":"post","link":"https:\/\/excelwork.info\/excel\/vbe_hasvbproject\/","title":{"rendered":"\u30d6\u30c3\u30af\u306b\u30de\u30af\u30ed\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\uff08HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3\uff09"},"content":{"rendered":"<h2>HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<div class=\"m30-l\">\n<p>\u30d6\u30c3\u30af\u306b\u30de\u30af\u30ed\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u8868\u3059\u30d6\u30fc\u30eb\u578b\uff08Boolean\uff09\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u30d6\u30c3\u30af\u306b\u30de\u30af\u30ed\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001<strong>True<\/strong> \u3092\u8fd4\u3057\u3001\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<strong>False<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001<strong>HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3<\/strong> \u306f\u3001Excel 2007 \u3067\u8ffd\u52a0\u3055\u308c\u305f\u6a5f\u80fd\u306a\u306e\u3067\u3001Excel 2003 \u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<br \/>\n<div class=\"kkbox\"><strong>\u3010\u66f8\u5f0f\u3011<\/strong><\/p>\n<p>    <em>object<\/em>.<strong>HasVBProject<\/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>Workbook \u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/strong><\/span>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul><\/div>\n<\/div>\n<br \/><br \/>\n<h2>HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3 \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=\"HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3 \u4f7f\u7528\u4f8b\" data-url=\"http:\/\/example.co.jp\" >\r\n\u3000\r\nSub Sample_HasVBProject()\r\n\r\n    Dim w As Workbook\r\n    Set w = Workbooks.Open(\"C:\\Documents\\mybook.xlsx\")\r\n    \r\n    If w.HasVBProject = True Then\r\n        MsgBox \"\u3053\u306e\u30d6\u30c3\u30af\u306f\u30de\u30af\u30ed\u3092\u542b\u3093\u3067\u3044\u307e\u3059\"\r\n    Else\r\n        MsgBox \"\u3053\u306e\u30d6\u30c3\u30af\u306f\u30de\u30af\u30ed\u3092\u542b\u3093\u3067\u3044\u307e\u305b\u3093\"\r\n    End If\r\n    \r\n    w.Close\r\n    Set w = Nothing\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\/12\/vbe_hasvbproject01.jpg?ssl=1\" rel=\"lightbox[4459]\"><img loading=\"lazy\" src=\"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/vbe_hasvbproject01.jpg?resize=224%2C155&#038;ssl=1\" alt=\"HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3\" width=\"224\" height=\"155\" class=\"alignnone size-full wp-image-4460\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<\/div>\n<br \/><br \/>\n","protected":false},"excerpt":{"rendered":"<p>HasVBProject \u30d7\u30ed\u30d1\u30c6\u30a3 \u30d6\u30c3\u30af\u306b\u30de\u30af\u30ed\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u8868\u3059 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":4460,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[696],"tags":[699,63,698,363,38,697],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/excelwork.info\/excel\/wp\/wp-content\/uploads\/2015\/12\/vbe_hasvbproject01.jpg?fit=224%2C155&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4Ye9i-19V","_links":{"self":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4459"}],"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=4459"}],"version-history":[{"count":5,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4459\/revisions"}],"predecessor-version":[{"id":4920,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/posts\/4459\/revisions\/4920"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media\/4460"}],"wp:attachment":[{"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/media?parent=4459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/categories?post=4459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/excelwork.info\/excel\/wp-json\/wp\/v2\/tags?post=4459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}