<?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: Noncontiguous Selection</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-63075</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Tue, 03 May 2011 21:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-63075</guid>
		<description>&lt;p&gt;@Davd Silks,&lt;/p&gt;
&lt;p&gt;This was the best interface I could come up with, so I hope you like it. From any worksheet in your workbook, press ALT+F11 to go into the VB editor and, once there, click Insert/Module on its Menu Bar, then copy/paste the following code into the code window that opened up...&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; CopyToSameAddress()&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; SelectedCells &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;, SelectedSheet &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; CopyToSheet &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Worksheet, A &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; Range&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Const&lt;/span&gt; Message = &lt;span class=&quot;st0&quot;&gt;&quot;Select any cell on the worksheet you &quot;&lt;/span&gt; &amp; _&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;span class=&quot;st0&quot;&gt;&quot;want to copy the selected cells to...&quot;&lt;/span&gt;&lt;br&gt;
&#160; SelectedSheet = ActiveSheet.Name&lt;br&gt;
&#160; SelectedCells = Selection.Address&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; CopyToSheet = Application.InputBox(Message, _&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;span class=&quot;st0&quot;&gt;&quot;Select Copy To Sheet&quot;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;Type&lt;/span&gt;:=8).Parent&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;For&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Each&lt;/span&gt; A &lt;span class=&quot;kw1&quot;&gt;In&lt;/span&gt; Worksheets(SelectedSheet).Range(SelectedCells).Areas&lt;br&gt;
&#160; &#160; A.Copy CopyToSheet.Range(A.Address)&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;Next&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;That&#039;s it. Go back to any sheet with data that you want to copy, select the cells you want to copy (this selection can be any combination of contiguous and non-contiguous ranges from any columns. rows or rectangular ranges of rows and columns) and press ALT+F8 to bring up the macro dialog box. Select CopyToSameAddress from the list and click the Run button. A dialog box will appear asking you to go to the worksheet you want to copy the cells to and select &lt;b&gt;any&lt;/b&gt; cell on that worksheet and click the OK button. Your cells were just copied to the sheet whose cell you selected in response to the dialog box question.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Davd Silks,</p>
<p>This was the best interface I could come up with, so I hope you like it. From any worksheet in your workbook, press ALT+F11 to go into the VB editor and, once there, click Insert/Module on its Menu Bar, then copy/paste the following code into the code window that opened up&#8230;</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Sub</span> CopyToSameAddress()<br />
&nbsp; <span class="kw1">Dim</span> SelectedCells <span class="kw1">As</span> <span class="kw1">String</span>, SelectedSheet <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; <span class="kw1">Dim</span> CopyToSheet <span class="kw1">As</span> Worksheet, A <span class="kw1">As</span> Range<br />
&nbsp; <span class="kw1">Const</span> Message = <span class="st0">&#8220;Select any cell on the worksheet you &#8220;</span> &amp; _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#8220;want to copy the selected cells to&#8230;&#8221;</span><br />
&nbsp; SelectedSheet = ActiveSheet.Name<br />
&nbsp; SelectedCells = Selection.Address<br />
&nbsp; <span class="kw1">Set</span> CopyToSheet = Application.InputBox(Message, _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="st0">&#8220;Select Copy To Sheet&#8221;</span>, <span class="kw1">Type</span>:=8).Parent<br />
&nbsp; <span class="kw1">For</span> <span class="kw1">Each</span> A <span class="kw1">In</span> Worksheets(SelectedSheet).Range(SelectedCells).Areas<br />
&nbsp; &nbsp; A.Copy CopyToSheet.Range(A.Address)<br />
&nbsp; <span class="kw1">Next</span><br />
<span class="kw1">End</span> <span class="kw1">Sub</span></div>
</div>
<p>That&#8217;s it. Go back to any sheet with data that you want to copy, select the cells you want to copy (this selection can be any combination of contiguous and non-contiguous ranges from any columns. rows or rectangular ranges of rows and columns) and press ALT+F8 to bring up the macro dialog box. Select CopyToSameAddress from the list and click the Run button. A dialog box will appear asking you to go to the worksheet you want to copy the cells to and select <b>any</b> cell on that worksheet and click the OK button. Your cells were just copied to the sheet whose cell you selected in response to the dialog box question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davd Silks</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-63069</link>
		<dc:creator>Davd Silks</dc:creator>
		<pubDate>Tue, 03 May 2011 19:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-63069</guid>
		<description>&lt;p&gt;@Rick R&lt;/p&gt;
&lt;p&gt;Thanx Rick, the source is always user selected and can change. The copy could be any other sheet in the workbook, not always sheet 2. Sheet to paste on is determined at the time of paste. Thank you once again, appreciated.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Rick R</p>
<p>Thanx Rick, the source is always user selected and can change. The copy could be any other sheet in the workbook, not always sheet 2. Sheet to paste on is determined at the time of paste. Thank you once again, appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-63068</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Tue, 03 May 2011 19:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-63068</guid>
		<description>&lt;p&gt;@David Silks,&lt;/p&gt;
&lt;p&gt;To the best of my knowledge, there is no way to do what you want without using some kind of VB code. If you tell us whether the source will always be user selected, or is it always a specific set of cells, and whether the copy will always be placed on Sheet2, or if the sheet is to be determined at the time of the copying, then we can design the code for you and tell you how to install it in your workbook.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@David Silks,</p>
<p>To the best of my knowledge, there is no way to do what you want without using some kind of VB code. If you tell us whether the source will always be user selected, or is it always a specific set of cells, and whether the copy will always be placed on Sheet2, or if the sheet is to be determined at the time of the copying, then we can design the code for you and tell you how to install it in your workbook.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davd Silks</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-63010</link>
		<dc:creator>Davd Silks</dc:creator>
		<pubDate>Mon, 02 May 2011 19:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-63010</guid>
		<description>&lt;p&gt;@ Rick R&lt;br&gt;
Thank you very much, but i am a real Excel novice, so maybe this is not the correct page for me, apologies if its not, I dont know VBA or any of that stuff, just want a keystroke that lets me copy with holding CTRL down, cell A1, A3 and say A7,,,,those are just examples, to a diff SHEET (sheet 2 say), and pasting them in the exact same cells,,,,if I do it, those three paste into A1, A2 and A3, not from where I copied them.....I just want to know if this is possible with some sort of special paste....thank you for your previous help.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@ Rick R<br />
Thank you very much, but i am a real Excel novice, so maybe this is not the correct page for me, apologies if its not, I dont know VBA or any of that stuff, just want a keystroke that lets me copy with holding CTRL down, cell A1, A3 and say A7,,,,those are just examples, to a diff SHEET (sheet 2 say), and pasting them in the exact same cells,,,,if I do it, those three paste into A1, A2 and A3, not from where I copied them&#8230;..I just want to know if this is possible with some sort of special paste&#8230;.thank you for your previous help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Rothstein (MVP - Excel)</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-62810</link>
		<dc:creator>Rick Rothstein (MVP - Excel)</dc:creator>
		<pubDate>Fri, 29 Apr 2011 19:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-62810</guid>
		<description>&lt;p&gt;@Dave S,&lt;/p&gt;
&lt;p&gt;You didn&#039;t give us any specifics, so you will have to modify this general approach. Assuming your non-contiguous cells are the Selection (replace Selection with a reference to your actual non-contiguous range), give code structured like this a try...&lt;/p&gt;
&lt;p&gt;Dim A As Range, Cell As Range&lt;br&gt;
For Each A In Selection.Areas&lt;br&gt;
    A.Copy Worksheets(&quot;YourOtherSheet&quot;).Cells(A(1).Row, A(1).Column)&lt;br&gt;
Next&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Dave S,</p>
<p>You didn&#8217;t give us any specifics, so you will have to modify this general approach. Assuming your non-contiguous cells are the Selection (replace Selection with a reference to your actual non-contiguous range), give code structured like this a try&#8230;</p>
<p>Dim A As Range, Cell As Range<br />
For Each A In Selection.Areas<br />
    A.Copy Worksheets(&#8220;YourOtherSheet&#8221;).Cells(A(1).Row, A(1).Column)<br />
Next</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave S</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-62797</link>
		<dc:creator>Dave S</dc:creator>
		<pubDate>Fri, 29 Apr 2011 15:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-62797</guid>
		<description>&lt;p&gt;hello, hope someone can help, am trying to copy non-contigous cells from one worksheet and paste them in the EXACT SAME cells in another worksheet, cant seem to work out how to do this, as excel just pastes them one under another.....&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>hello, hope someone can help, am trying to copy non-contigous cells from one worksheet and paste them in the EXACT SAME cells in another worksheet, cant seem to work out how to do this, as excel just pastes them one under another&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-29166</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Tue, 04 Dec 2007 14:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-29166</guid>
		<description>&lt;p&gt;You can select multiple ranges, no problem, using CTRL+Click. In order to use this range for anything useful (i.e., to copy or to use as chart source data, etc.), it must be a well-defined discontiguous range. Than means, it must be definable as a large rectangle, cut through by complete rows and columns. So that if the unselected rows and columns are removed (or hidden) and the range is pushed together, the result is a single rectangle. No cells in the multiple selection can be selected twice. Also, if one sub rectangle is A1:B2 and you want to add A4:B5, you have to do it in one step, A4:B5, not in two steps, A4:B4 plus A5:B5. When you follow these guidelines, you should be more successful with discontinguous ranges.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You can select multiple ranges, no problem, using CTRL+Click. In order to use this range for anything useful (i.e., to copy or to use as chart source data, etc.), it must be a well-defined discontiguous range. Than means, it must be definable as a large rectangle, cut through by complete rows and columns. So that if the unselected rows and columns are removed (or hidden) and the range is pushed together, the result is a single rectangle. No cells in the multiple selection can be selected twice. Also, if one sub rectangle is A1:B2 and you want to add A4:B5, you have to do it in one step, A4:B5, not in two steps, A4:B4 plus A5:B5. When you follow these guidelines, you should be more successful with discontinguous ranges.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Howard Dore</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-29163</link>
		<dc:creator>Howard Dore</dc:creator>
		<pubDate>Tue, 04 Dec 2007 10:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-29163</guid>
		<description>&lt;p&gt;Is your issue that use of the &#039;Page Down&#039; key stops multiple selection copy from working?  As far as I can see, if you page down using the scroll bar it works OK but if you use the Page Down key it doesn&#039;t!  How bizarre is that?  I&#039;m on Excel 2002 by the way.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Is your issue that use of the &#8216;Page Down&#8217; key stops multiple selection copy from working?  As far as I can see, if you page down using the scroll bar it works OK but if you use the Page Down key it doesn&#8217;t!  How bizarre is that?  I&#8217;m on Excel 2002 by the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duftopia</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-29150</link>
		<dc:creator>Duftopia</dc:creator>
		<pubDate>Mon, 03 Dec 2007 18:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-29150</guid>
		<description>&lt;p&gt;Well the F8- Shift f8 doesn&#039;t seem to work for me either, its simple:&lt;/p&gt;
&lt;p&gt;I need to select one entire row, page down to find another item i want select it and do this for several pages then copy paste it.  &lt;/p&gt;
&lt;p&gt;I still get cannot copy multiple selections, well its going to be a long day!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Well the F8- Shift f8 doesn&#8217;t seem to work for me either, its simple:</p>
<p>I need to select one entire row, page down to find another item i want select it and do this for several pages then copy paste it.  </p>
<p>I still get cannot copy multiple selections, well its going to be a long day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duftopia</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/11/11/noncontiguous-selection/#comment-29149</link>
		<dc:creator>Duftopia</dc:creator>
		<pubDate>Mon, 03 Dec 2007 17:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1284#comment-29149</guid>
		<description>&lt;p&gt;I am running Excel 2003, now with excel 2007 has this bug been fixed!.&lt;/p&gt;
&lt;p&gt;     Honestly I came from the Lotus 123 days and one thing I can say about the Lotus people, even the quatro and aseasy 123 people - they fixed there bugs.&lt;/p&gt;
&lt;p&gt;     Sometimes CTRL-Select works, sometimes it doesn&#039;t what type of logic is this, I really like to know what is behind the scenes on this program issue?, is it because Microsoft when in doubt uses the random number generator to determine if the function should do what it was designed to do when the program fails!&lt;/p&gt;
&lt;p&gt;     You see I understand some MS issues like sorting numbers and Alpha in the DIR (dos based) environment that they did not fix in the windows versions that followed, I have clients who can never get use to the problem where number 20 is sorted before 3, they could have at the very least added a switch to make windows act like it knows numbers, but I know deep down inside where the problem lies and even I can&#039;t find an easy effective fix.&lt;/p&gt;
&lt;p&gt;     But this absolutely silly, time wasting issue that follows us from version to version of excel just does not get addressed, and people have dozens and dozens of macros to circumvent the problem.&lt;/p&gt;
&lt;p&gt;The Excel GURU John Walkenbach suggest the F8 trick, what does that tell you?, even a genius who probably has a repore with Microsoft has to concoct an &quot;extra Keystroke&quot; slower method to get around such an apparently simply issue.&lt;/p&gt;
&lt;p&gt;Someone tell me for the sake of my sanity why MS can&#039;t fix this &quot;multiple selection&quot; issue, so that maybe I will go back to hacking and write a patch to fix it (and remove excel&#039;s license check as well) - you see I&#039;ve got some more serious array issues to discus after I fix this one.&lt;/p&gt;
&lt;p&gt;Duf&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am running Excel 2003, now with excel 2007 has this bug been fixed!.</p>
<p>     Honestly I came from the Lotus 123 days and one thing I can say about the Lotus people, even the quatro and aseasy 123 people &#8211; they fixed there bugs.</p>
<p>     Sometimes CTRL-Select works, sometimes it doesn&#8217;t what type of logic is this, I really like to know what is behind the scenes on this program issue?, is it because Microsoft when in doubt uses the random number generator to determine if the function should do what it was designed to do when the program fails!</p>
<p>     You see I understand some MS issues like sorting numbers and Alpha in the DIR (dos based) environment that they did not fix in the windows versions that followed, I have clients who can never get use to the problem where number 20 is sorted before 3, they could have at the very least added a switch to make windows act like it knows numbers, but I know deep down inside where the problem lies and even I can&#8217;t find an easy effective fix.</p>
<p>     But this absolutely silly, time wasting issue that follows us from version to version of excel just does not get addressed, and people have dozens and dozens of macros to circumvent the problem.</p>
<p>The Excel GURU John Walkenbach suggest the F8 trick, what does that tell you?, even a genius who probably has a repore with Microsoft has to concoct an &#8220;extra Keystroke&#8221; slower method to get around such an apparently simply issue.</p>
<p>Someone tell me for the sake of my sanity why MS can&#8217;t fix this &#8220;multiple selection&#8221; issue, so that maybe I will go back to hacking and write a patch to fix it (and remove excel&#8217;s license check as well) &#8211; you see I&#8217;ve got some more serious array issues to discus after I fix this one.</p>
<p>Duf</p>
]]></content:encoded>
	</item>
</channel>
</rss>

