<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Extract the First 4400 Images from Excel 2003 (and Above) and Transfer to a Database Table</title>
	<atom:link href="http://hoopercharles.wordpress.com/2009/12/28/extract-the-first-4400-images-from-excel-2003-and-above-and-transfer-to-a-database-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2009/12/28/extract-the-first-4400-images-from-excel-2003-and-above-and-transfer-to-a-database-table/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Mon, 13 May 2013 14:10:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2009/12/28/extract-the-first-4400-images-from-excel-2003-and-above-and-transfer-to-a-database-table/#comment-3870</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Thu, 08 Sep 2011 15:53:10 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=554#comment-3870</guid>
		<description><![CDATA[Jason,

Thank you for sharing your modified version of this solution.]]></description>
		<content:encoded><![CDATA[<p>Jason,</p>
<p>Thank you for sharing your modified version of this solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason B</title>
		<link>http://hoopercharles.wordpress.com/2009/12/28/extract-the-first-4400-images-from-excel-2003-and-above-and-transfer-to-a-database-table/#comment-3868</link>
		<dc:creator><![CDATA[Jason B]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 22:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=554#comment-3868</guid>
		<description><![CDATA[Oops! Typo in the code above. All the directories need to be consistent. 
&lt;pre&gt;
Private Sub ExtractImagesFromCustomToolbar()

    Dim i As Integer
    Dim picPicture As stdole.IPictureDisp
    Dim picMask As stdole.IPictureDisp

    On Error Resume Next

    If Len(Dir(&quot;C:\Excel_2003_Toolbar_Images&quot;, vbDirectory)) &lt; 4 Then
        &#039;Create the folder to hold the exported pictures
        MkDir &quot;C:\Excel_2003_Toolbar_Images&quot;
    End If

        For i = 1 To 32  &#039;Must set number of controls manually (count the items in your custom toolbar)

            &#039;Transfer the pictures from the command bar control to local variables
            &#039;If you don&#039;t know the number associated with your custom toolbar, run the CommandBarNames() subroutine below
            
            Set picPicture = Application.CommandBars(126).Controls(i).Picture
            Set picMask = Application.CommandBars(126).Controls(i).Mask

            &#039;Save the pictures to disk
            stdole.SavePicture picPicture, &quot;C:\Excel_2003_Toolbar_Images\&quot; &amp; i &amp; &quot;-Pic.bmp&quot;

            &#039;Save the mask picture for the toolbar button
            stdole.SavePicture picMask, &quot;C:\Excel_2003_Toolbar_Images\&quot; &amp; i &amp; &quot;-Mask.bmp&quot;

            &#039;Free the memory from the local variables
            Set picPicture = Nothing
            Set picMask = Nothing

        Next i

End Sub


Sub CommandBarNames()
&#039;Run this to identify the number associated with your custom toolbar(s)
&#039;After running it, manually review the CommandBarNames spreadsheet to identify the numbers

On Error GoTo Outta

For i = 1 To 200

Sheets(&quot;CommandBarNames&quot;).Cells(i, 1) = Application.CommandBars(i).Name
Sheets(&quot;CommandBarNames&quot;).Cells(i, 2) = i

Next i

Outta:

End Sub
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Oops! Typo in the code above. All the directories need to be consistent. </p>
<pre>
Private Sub ExtractImagesFromCustomToolbar()

    Dim i As Integer
    Dim picPicture As stdole.IPictureDisp
    Dim picMask As stdole.IPictureDisp

    On Error Resume Next

    If Len(Dir("C:\Excel_2003_Toolbar_Images", vbDirectory)) &lt; 4 Then
        &#039;Create the folder to hold the exported pictures
        MkDir &quot;C:\Excel_2003_Toolbar_Images&quot;
    End If

        For i = 1 To 32  &#039;Must set number of controls manually (count the items in your custom toolbar)

            &#039;Transfer the pictures from the command bar control to local variables
            &#039;If you don&#039;t know the number associated with your custom toolbar, run the CommandBarNames() subroutine below
            
            Set picPicture = Application.CommandBars(126).Controls(i).Picture
            Set picMask = Application.CommandBars(126).Controls(i).Mask

            &#039;Save the pictures to disk
            stdole.SavePicture picPicture, &quot;C:\Excel_2003_Toolbar_Images\&quot; &amp; i &amp; &quot;-Pic.bmp&quot;

            &#039;Save the mask picture for the toolbar button
            stdole.SavePicture picMask, &quot;C:\Excel_2003_Toolbar_Images\&quot; &amp; i &amp; &quot;-Mask.bmp&quot;

            &#039;Free the memory from the local variables
            Set picPicture = Nothing
            Set picMask = Nothing

        Next i

End Sub


Sub CommandBarNames()
&#039;Run this to identify the number associated with your custom toolbar(s)
&#039;After running it, manually review the CommandBarNames spreadsheet to identify the numbers

On Error GoTo Outta

For i = 1 To 200

Sheets(&quot;CommandBarNames&quot;).Cells(i, 1) = Application.CommandBars(i).Name
Sheets(&quot;CommandBarNames&quot;).Cells(i, 2) = i

Next i

Outta:

End Sub
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason B</title>
		<link>http://hoopercharles.wordpress.com/2009/12/28/extract-the-first-4400-images-from-excel-2003-and-above-and-transfer-to-a-database-table/#comment-3867</link>
		<dc:creator><![CDATA[Jason B]]></dc:creator>
		<pubDate>Wed, 07 Sep 2011 22:42:28 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=554#comment-3867</guid>
		<description><![CDATA[I needed to do something more simple: extract all the images from a custom toolbar I created in Excel 2003. I adapted a few lines of code from the above example and am posting it here in case someone else runs across this post with similar needs to mine.
&lt;pre&gt;
Private Sub ExtractImagesFromCustomToolbar()

    Dim i As Integer
    Dim picPicture As stdole.IPictureDisp
    Dim picMask As stdole.IPictureDisp

    On Error Resume Next

    If Len(Dir(&quot;C:\Excel_2003_Toolbar_Images&quot;, vbDirectory)) &lt; 4 Then
        &#039;Create the folder to hold the exported pictures
        MkDir &quot;C:\Excel_2003_Toolbar_Images&quot;
    End If

        For i = 1 To 32  &#039;Must set number of controls manually (count the items in your custom toolbar)

            &#039;Transfer the pictures from the command bar control to local variables
            &#039;If you don&#039;t know the number associated with your custom toolbar, run the CommandBarNames() subroutine below
            
            Set picPicture = Application.CommandBars(126).Controls(i).Picture
            Set picMask = Application.CommandBars(126).Controls(i).Mask

            &#039;Save the pictures to disk
            stdole.SavePicture picPicture, &quot;C:\ExcelBuiltInImages2003\&quot; &amp; i &amp; &quot;-Pic.bmp&quot;

            &#039;Save the mask picture for the toolbar button
            stdole.SavePicture picMask, &quot;C:\ExcelBuiltInImages2003\&quot; &amp; i &amp; &quot;-Mask.bmp&quot;

            &#039;Free the memory from the local variables
            Set picPicture = Nothing
            Set picMask = Nothing

        Next i

End Sub


Sub CommandBarNames()
&#039;Run this to identify the number associated with your custom toolbar(s)
&#039;After running it, manually review the CommandBarNames spreadsheet to identify the numbers

On Error GoTo Outta

For i = 1 To 200

Sheets(&quot;CommandBarNames&quot;).Cells(i, 1) = Application.CommandBars(i).Name
Sheets(&quot;CommandBarNames&quot;).Cells(i, 2) = i

Next i

Outta:

End Sub
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>I needed to do something more simple: extract all the images from a custom toolbar I created in Excel 2003. I adapted a few lines of code from the above example and am posting it here in case someone else runs across this post with similar needs to mine.</p>
<pre>
Private Sub ExtractImagesFromCustomToolbar()

    Dim i As Integer
    Dim picPicture As stdole.IPictureDisp
    Dim picMask As stdole.IPictureDisp

    On Error Resume Next

    If Len(Dir("C:\Excel_2003_Toolbar_Images", vbDirectory)) &lt; 4 Then
        &#039;Create the folder to hold the exported pictures
        MkDir &quot;C:\Excel_2003_Toolbar_Images&quot;
    End If

        For i = 1 To 32  &#039;Must set number of controls manually (count the items in your custom toolbar)

            &#039;Transfer the pictures from the command bar control to local variables
            &#039;If you don&#039;t know the number associated with your custom toolbar, run the CommandBarNames() subroutine below
            
            Set picPicture = Application.CommandBars(126).Controls(i).Picture
            Set picMask = Application.CommandBars(126).Controls(i).Mask

            &#039;Save the pictures to disk
            stdole.SavePicture picPicture, &quot;C:\ExcelBuiltInImages2003\&quot; &amp; i &amp; &quot;-Pic.bmp&quot;

            &#039;Save the mask picture for the toolbar button
            stdole.SavePicture picMask, &quot;C:\ExcelBuiltInImages2003\&quot; &amp; i &amp; &quot;-Mask.bmp&quot;

            &#039;Free the memory from the local variables
            Set picPicture = Nothing
            Set picMask = Nothing

        Next i

End Sub


Sub CommandBarNames()
&#039;Run this to identify the number associated with your custom toolbar(s)
&#039;After running it, manually review the CommandBarNames spreadsheet to identify the numbers

On Error GoTo Outta

For i = 1 To 200

Sheets(&quot;CommandBarNames&quot;).Cells(i, 1) = Application.CommandBars(i).Name
Sheets(&quot;CommandBarNames&quot;).Cells(i, 2) = i

Next i

Outta:

End Sub
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
