<?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: VBA: Size an Object to a Range Size</title>
	<atom:link href="http://www.automateexcel.com/2004/12/05/excel_vba_size_an_object_to_a_range_size/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2004/12/05/excel_vba_size_an_object_to_a_range_size/</link>
	<description>Everything Excel. Only Excel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 07:25:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Pedro</title>
		<link>http://www.automateexcel.com/2004/12/05/excel_vba_size_an_object_to_a_range_size/comment-page-1/#comment-51</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Sun, 13 Feb 2005 08:00:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-51</guid>
		<description>Yes, Mark!!!!.&lt;br /&gt;
&lt;br /&gt;
It works perfectly.  Thanks so much for your help.&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
Pedro</description>
		<content:encoded><![CDATA[<p>Yes, Mark!!!!.</p>
<p>It works perfectly.  Thanks so much for your help.</p>
<p>regards,<br />
Pedro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.automateexcel.com/2004/12/05/excel_vba_size_an_object_to_a_range_size/comment-page-1/#comment-50</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 12 Feb 2005 16:14:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-50</guid>
		<description>Hey pedro,  try this, it works for me to use this concept with an autoshape&lt;br /&gt;
&lt;br /&gt;
Sub SizeShape2Range()&lt;br /&gt;
&lt;br /&gt;
Dim MyShape As Shape&lt;br /&gt;
Dim MyRange As Range&lt;br /&gt;
&lt;br /&gt;
Sheet1.Activate&lt;br /&gt;
&lt;br /&gt;
Set MyShape = ActiveSheet.Shapes(&quot;AutoShape 1&quot;)&lt;br /&gt;
Set MyRange = Sheet1.Range(&quot;B2:D6&quot;)&lt;br /&gt;
&lt;br /&gt;
With MyShape&lt;br /&gt;
.Left = MyRange.Left&lt;br /&gt;
.Top = MyRange.Top&lt;br /&gt;
.Width = MyRange.Width&lt;br /&gt;
.Height = MyRange.Height&lt;br /&gt;
End With&lt;br /&gt;
&lt;br /&gt;
End Sub</description>
		<content:encoded><![CDATA[<p>Hey pedro,  try this, it works for me to use this concept with an autoshape</p>
<p>Sub SizeShape2Range()</p>
<p>Dim MyShape As Shape<br />
Dim MyRange As Range</p>
<p>Sheet1.Activate</p>
<p>Set MyShape = ActiveSheet.Shapes(&#8220;AutoShape 1&#8243;)<br />
Set MyRange = Sheet1.Range(&#8220;B2:D6&#8243;)</p>
<p>With MyShape<br />
.Left = MyRange.Left<br />
.Top = MyRange.Top<br />
.Width = MyRange.Width<br />
.Height = MyRange.Height<br />
End With</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pedro</title>
		<link>http://www.automateexcel.com/2004/12/05/excel_vba_size_an_object_to_a_range_size/comment-page-1/#comment-49</link>
		<dc:creator>Pedro</dc:creator>
		<pubDate>Sat, 12 Feb 2005 15:50:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-49</guid>
		<description>Hi, &lt;br /&gt;
&lt;br /&gt;
I tried to modify the code for a shape but I could not. &lt;br /&gt;
Would you tell me what I am doing wrong. &lt;br /&gt;
Thanks in advance for your kind assistance.&lt;br /&gt;
Pedro.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sub SizeShape2Range()&lt;br /&gt;
&lt;br /&gt;
Dim MyShape As Shape&lt;br /&gt;
Dim MyRange As Range&lt;br /&gt;
&lt;br /&gt;
Set MyShape = ActiveSheet.Shapes(1).Shape      &#039;I THINK HERE IS MY ERROR&lt;br /&gt;
Set MyRange = Sheet1. Range(&quot;B2:D6&quot;)&lt;br /&gt;
    &lt;br /&gt;
    With MyShape.Parent&lt;br /&gt;
        .Left = MyRange.Left&lt;br /&gt;
        .Top = MyRange.Top&lt;br /&gt;
        .Width = MyRange.Width&lt;br /&gt;
        .Height = MyRange.Height&lt;br /&gt;
    End With&lt;br /&gt;
    &lt;br /&gt;
End Sub</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I tried to modify the code for a shape but I could not. <br />
Would you tell me what I am doing wrong. <br />
Thanks in advance for your kind assistance.<br />
Pedro.</p>
<p>Sub SizeShape2Range()</p>
<p>Dim MyShape As Shape<br />
Dim MyRange As Range</p>
<p>Set MyShape = ActiveSheet.Shapes(1).Shape      &#8216;I THINK HERE IS MY ERROR<br />
Set MyRange = Sheet1. Range(&#8220;B2:D6&#8243;)</p>
<p>    With MyShape.Parent<br />
        .Left = MyRange.Left<br />
        .Top = MyRange.Top<br />
        .Width = MyRange.Width<br />
        .Height = MyRange.Height<br />
    End With</p>
<p>End Sub</p>
]]></content:encoded>
	</item>
</channel>
</rss>

