<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Run VBA Code When Documents Open</title>
	<atom:link href="http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/</link>
	<description>Shapes, Stencils, Drawings Templates, Tutorials, Tips &#38; Developer Info for Microsoft Visio</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:20:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-33921</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Fri, 03 Feb 2012 16:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-33921</guid>
		<description>@Dave,

Phew!</description>
		<content:encoded><![CDATA[<p>@Dave,</p>
<p>Phew!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave WIlson</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-33741</link>
		<dc:creator>Dave WIlson</dc:creator>
		<pubDate>Wed, 01 Feb 2012 23:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-33741</guid>
		<description>Ok, I got it running.</description>
		<content:encoded><![CDATA[<p>Ok, I got it running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave WIlson</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-33730</link>
		<dc:creator>Dave WIlson</dc:creator>
		<pubDate>Wed, 01 Feb 2012 21:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-33730</guid>
		<description>How do I make it run?  Put the code in and nothing happens.

Thanks.
Dave</description>
		<content:encoded><![CDATA[<p>How do I make it run?  Put the code in and nothing happens.</p>
<p>Thanks.<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-25154</link>
		<dc:creator>Visio Guy</dc:creator>
		<pubDate>Tue, 07 Dec 2010 21:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-25154</guid>
		<description>Well, um, for those reading the comments, Bernardes&#039; code prints the name of every document that is open in Visio, along with the name of every page in every document. 

Perhaps he didn&#039;t quite understand what this article was about, but thanks anyway. 

Say &quot;Hi&quot; to Walter, Bernardes!</description>
		<content:encoded><![CDATA[<p>Well, um, for those reading the comments, Bernardes&#8217; code prints the name of every document that is open in Visio, along with the name of every page in every document. </p>
<p>Perhaps he didn&#8217;t quite understand what this article was about, but thanks anyway. </p>
<p>Say &#8220;Hi&#8221; to Walter, Bernardes!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bernardes</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-25151</link>
		<dc:creator>bernardes</dc:creator>
		<pubDate>Tue, 07 Dec 2010 18:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-25151</guid>
		<description>Try this too:

Public Sub ShowNames() 

    &#039;Declare object variables as Visio object types. 
    Dim vsoPage As Visio.Page 
    Dim vsoDocument As Visio.Document 
    Dim vsoDocuments As Visio.Documents 
    Dim vsoPages As Visio.Pages 

    &#039;Iterate through all open documents. 
    Set vsoDocuments  = Application.Documents 
    For Each vsoDocument In vsoDocuments  

        &#039;Print the drawing name in the Visual Basic Editor 
        &#039;Immediate window. 
        Debug.Print vsoDocument.FullName 

        &#039;Iterate through all pages in a drawing. 
        Set vsoPages = vsoDocument.Pages 
        For Each vsoPage In vsoPages
 
            &#039;Print the page name in the Visual Basic Editor 
            &#039;Immediate window. 
            Debug.Print Tab(5); vsoPage.Name
 
        Next 

    Next 

End Sub

André Luiz Bernardes
https://sites.google.com/site/vbabernardes/blogs
A&amp;A® - Work smart, not hard.
Blog Office VBA &#124;  Blog Excel &#124; Blog Access</description>
		<content:encoded><![CDATA[<p>Try this too:</p>
<p>Public Sub ShowNames() </p>
<p>    &#8216;Declare object variables as Visio object types.<br />
    Dim vsoPage As Visio.Page<br />
    Dim vsoDocument As Visio.Document<br />
    Dim vsoDocuments As Visio.Documents<br />
    Dim vsoPages As Visio.Pages </p>
<p>    &#8216;Iterate through all open documents.<br />
    Set vsoDocuments  = Application.Documents<br />
    For Each vsoDocument In vsoDocuments  </p>
<p>        &#8216;Print the drawing name in the Visual Basic Editor<br />
        &#8216;Immediate window.<br />
        Debug.Print vsoDocument.FullName </p>
<p>        &#8216;Iterate through all pages in a drawing.<br />
        Set vsoPages = vsoDocument.Pages<br />
        For Each vsoPage In vsoPages</p>
<p>            &#8216;Print the page name in the Visual Basic Editor<br />
            &#8216;Immediate window.<br />
            Debug.Print Tab(5); vsoPage.Name</p>
<p>        Next </p>
<p>    Next </p>
<p>End Sub</p>
<p>André Luiz Bernardes<br />
<a  href="https://sites.google.com/site/vbabernardes/blogs" rel="nofollow">https://sites.google.com/site/vbabernardes/blogs</a><br />
A&amp;A® &#8211; Work smart, not hard.<br />
Blog Office VBA |  Blog Excel | Blog Access</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Visio Guy &#187; Blog Archive &#187; Smart LineWeight: Bigger Shape, Thicker Lines</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-17438</link>
		<dc:creator>Visio Guy &#187; Blog Archive &#187; Smart LineWeight: Bigger Shape, Thicker Lines</dc:creator>
		<pubDate>Mon, 31 Mar 2008 16:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-17438</guid>
		<description>[...] to run VBA code in Visio, have a look at the following articles: John Goldsmith: Just For Starters, Run VBA Code When Documents Open and VBA Macro [...]</description>
		<content:encoded><![CDATA[<p>[...] to run VBA code in Visio, have a look at the following articles: John Goldsmith: Just For Starters, Run VBA Code When Documents Open and VBA Macro [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson (MS)</title>
		<link>http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/comment-page-1/#comment-4757</link>
		<dc:creator>Mark Nelson (MS)</dc:creator>
		<pubDate>Sat, 26 May 2007 06:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.visguy.com/2007/05/25/run-vba-code-when-documents-open/#comment-4757</guid>
		<description>Good tip, Chris!</description>
		<content:encoded><![CDATA[<p>Good tip, Chris!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 7/18 queries in 0.007 seconds using disk: basic
Object Caching 433/437 objects using disk: basic
Content Delivery Network via N/A

Served from: www.visguy.com @ 2012-02-12 00:30:14 -->
