<?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: Cut, Copy, Paste from a Macro</title>
	<atom:link href="http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/</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: Daniel</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-2275</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 23 Sep 2011 07:04:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-2275</guid>
		<description>Does anybody know how to keep active that &#039;cancel action&#039; button on the panel after running a macros?</description>
		<content:encoded><![CDATA[<p>Does anybody know how to keep active that &#8216;cancel action&#8217; button on the panel after running a macros?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-2243</link>
		<dc:creator>Dinesh</dc:creator>
		<pubDate>Fri, 09 Sep 2011 22:32:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-2243</guid>
		<description>How to copy a row and column from one sheet and pate it to other sheet n times</description>
		<content:encoded><![CDATA[<p>How to copy a row and column from one sheet and pate it to other sheet n times</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandra</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-2197</link>
		<dc:creator>Sandra</dc:creator>
		<pubDate>Thu, 18 Aug 2011 11:36:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-2197</guid>
		<description>Hi!
This is a complicate case. May be you can help me. 
I have 2 sheets (sheet1 and sheet2) in one xls with a table in each one, same titles, some data is defferent.
I want: 
1.- compare both tables by column 2
2.- if data in column 2 of both tables match then, select, copy and insert the entire row in sheet2, so I will have 2 rows with same data in sheet2.

Can you help me, please.
Thank you.</description>
		<content:encoded><![CDATA[<p>Hi!<br />
This is a complicate case. May be you can help me.<br />
I have 2 sheets (sheet1 and sheet2) in one xls with a table in each one, same titles, some data is defferent.<br />
I want:<br />
1.- compare both tables by column 2<br />
2.- if data in column 2 of both tables match then, select, copy and insert the entire row in sheet2, so I will have 2 rows with same data in sheet2.</p>
<p>Can you help me, please.<br />
Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-2087</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Mon, 02 May 2011 13:21:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-2087</guid>
		<description>Hi, I want to paste only values of particular range to sheet2 if sheet 1 meets criteria that is given date is matched</description>
		<content:encoded><![CDATA[<p>Hi, I want to paste only values of particular range to sheet2 if sheet 1 meets criteria that is given date is matched</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wani</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1944</link>
		<dc:creator>wani</dc:creator>
		<pubDate>Sun, 23 Jan 2011 01:38:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-1944</guid>
		<description>hi everyone. sorry to reply back on my own qtn. 
just wanna share the solution i have found.

just change &quot;Cut&quot; to &quot;Copy&quot; 
then, clearContents on the copied cells

mySheet.Range(&quot;A2:H500&quot;).Copy _
Destination:=Worksheets(&quot;dataout&quot;).Range(&quot;A65536&quot;).End(xlUp).Offset(1, 0).Range(&quot;A1&quot;)
Range(&quot;A2:H500&quot;).Select
Selection.ClearContents
Worksheets(&quot;checkout&quot;).Activate

\(^_^)/</description>
		<content:encoded><![CDATA[<p>hi everyone. sorry to reply back on my own qtn.<br />
just wanna share the solution i have found.</p>
<p>just change &#8220;Cut&#8221; to &#8220;Copy&#8221;<br />
then, clearContents on the copied cells</p>
<p>mySheet.Range(&#8220;A2:H500&#8243;).Copy _<br />
Destination:=Worksheets(&#8220;dataout&#8221;).Range(&#8220;A65536&#8243;).End(xlUp).Offset(1, 0).Range(&#8220;A1&#8243;)<br />
Range(&#8220;A2:H500&#8243;).Select<br />
Selection.ClearContents<br />
Worksheets(&#8220;checkout&#8221;).Activate</p>
<p>\(^_^)/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wani</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1943</link>
		<dc:creator>wani</dc:creator>
		<pubDate>Sat, 22 Jan 2011 11:14:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-1943</guid>
		<description>hi there! need your expertise..
i have columnD of sheet1 to sum lists of data in colB.
e.g: colA     colB      colD
      CB        1       =sumif(B:B,&quot;CB&quot;,B:B)
      CB        6 
so, i&#039;ll be getting &#039;7&#039; in my D1 cell.
i ran below code to cut A1:B20 then paste it to last empty row of sheet2. i manage to paste it correctly in sheet2 but somehow my formula in D1(sheet1) changes to &gt;&gt; =sumif(sheet2!B:B,&quot;CB&quot;,sheet2!B:B). how is this so? n how do i correct it?

code:
Sub RoundedRectangle2_Click()
Dim lPart As Long
Dim ws As Worksheet
Dim mySheet As Worksheet
Set mySheet = Worksheets(&quot;checkout&quot;)
mySheet.Range(&quot;A2:H500&quot;).Cut _
Destination:=Worksheets(&quot;dataout&quot;).Range(&quot;A65536&quot;).End(xlUp).Offset(1, 0).Range(&quot;A1&quot;)
Worksheets(&quot;checkout&quot;).Activate

End Sub

thanks in advance!</description>
		<content:encoded><![CDATA[<p>hi there! need your expertise..<br />
i have columnD of sheet1 to sum lists of data in colB.<br />
e.g: colA     colB      colD<br />
      CB        1       =sumif(B:B,&#8221;CB&#8221;,B:B)<br />
      CB        6<br />
so, i&#8217;ll be getting &#8217;7&#8242; in my D1 cell.<br />
i ran below code to cut A1:B20 then paste it to last empty row of sheet2. i manage to paste it correctly in sheet2 but somehow my formula in D1(sheet1) changes to &gt;&gt; =sumif(sheet2!B:B,&#8221;CB&#8221;,sheet2!B:B). how is this so? n how do i correct it?</p>
<p>code:<br />
Sub RoundedRectangle2_Click()<br />
Dim lPart As Long<br />
Dim ws As Worksheet<br />
Dim mySheet As Worksheet<br />
Set mySheet = Worksheets(&#8220;checkout&#8221;)<br />
mySheet.Range(&#8220;A2:H500&#8243;).Cut _<br />
Destination:=Worksheets(&#8220;dataout&#8221;).Range(&#8220;A65536&#8243;).End(xlUp).Offset(1, 0).Range(&#8220;A1&#8243;)<br />
Worksheets(&#8220;checkout&#8221;).Activate</p>
<p>End Sub</p>
<p>thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1935</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 18 Jan 2011 15:47:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-1935</guid>
		<description>Is there any way to copy just the values (not the formulae) with the .Copy syntax?  I don&#039;t see any options on the type of copy.</description>
		<content:encoded><![CDATA[<p>Is there any way to copy just the values (not the formulae) with the .Copy syntax?  I don&#8217;t see any options on the type of copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1908</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Mon, 27 Dec 2010 18:45:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-1908</guid>
		<description>I am using the following code, but I need it to copy Column A &amp; B onto the new worksheet, but to keep the data on the same row in Sheet2 as it was on Sheet 1.  Can someone tell me what I need to add?  

I have Sheet2 copied over exactly form Sheet1 so that I can print it and it look the same.  This is our invoice.  Our customers order things and if it is Back Ordered I want it to copy to Sheet 2 so I can make a Back Ordered Order for them.

Sub Copybo()

  &#039;Copy cells of cols A,B from rows containing &quot;BO&quot; in
  &#039;col D of the active worksheet (source sheet) to cols
  &#039;A,B of Sheet2 (destination sheet)
  
  &#039;Destination Sheet
  Dim DestSheet        As Worksheet
  Set DestSheet = Worksheets(&quot;Back Order&quot;)
  
  Dim sRow       As Long     &#039;row index on source worksheet
  Dim dRow       As Long     &#039;row index on destination worksheet
  Dim sCount     As Long
  sCount = 0
  dRow = 1

  For sRow = 1 To Range(&quot;D65536&quot;).End(xlUp).Row
     &#039;use pattern matching to find &quot;BO&quot; anywhere in cell
     If Cells(sRow, &quot;I&quot;) Like &quot;*BO*&quot; Then
        sCount = sCount + 1
        dRow = dRow + 1
        &#039;copy cols A &amp; B
        DestSheet.Cells(dRow, &quot;A&quot;) = Cells(sRow, &quot;A&quot;)
        DestSheet.Cells(dRow, &quot;B&quot;) = Cells(sRow, &quot;B&quot;)
        End If
  Next sRow
  
   MsgBox sCount &amp; &quot; BO rows copied&quot;, vbInformation, &quot;Transfer Done&quot;
   
   End Sub</description>
		<content:encoded><![CDATA[<p>I am using the following code, but I need it to copy Column A &amp; B onto the new worksheet, but to keep the data on the same row in Sheet2 as it was on Sheet 1.  Can someone tell me what I need to add?  </p>
<p>I have Sheet2 copied over exactly form Sheet1 so that I can print it and it look the same.  This is our invoice.  Our customers order things and if it is Back Ordered I want it to copy to Sheet 2 so I can make a Back Ordered Order for them.</p>
<p>Sub Copybo()</p>
<p>  &#8216;Copy cells of cols A,B from rows containing &#8220;BO&#8221; in<br />
  &#8216;col D of the active worksheet (source sheet) to cols<br />
  &#8216;A,B of Sheet2 (destination sheet)</p>
<p>  &#8216;Destination Sheet<br />
  Dim DestSheet        As Worksheet<br />
  Set DestSheet = Worksheets(&#8220;Back Order&#8221;)</p>
<p>  Dim sRow       As Long     &#8216;row index on source worksheet<br />
  Dim dRow       As Long     &#8216;row index on destination worksheet<br />
  Dim sCount     As Long<br />
  sCount = 0<br />
  dRow = 1</p>
<p>  For sRow = 1 To Range(&#8220;D65536&#8243;).End(xlUp).Row<br />
     &#8216;use pattern matching to find &#8220;BO&#8221; anywhere in cell<br />
     If Cells(sRow, &#8220;I&#8221;) Like &#8220;*BO*&#8221; Then<br />
        sCount = sCount + 1<br />
        dRow = dRow + 1<br />
        &#8216;copy cols A &amp; B<br />
        DestSheet.Cells(dRow, &#8220;A&#8221;) = Cells(sRow, &#8220;A&#8221;)<br />
        DestSheet.Cells(dRow, &#8220;B&#8221;) = Cells(sRow, &#8220;B&#8221;)<br />
        End If<br />
  Next sRow</p>
<p>   MsgBox sCount &amp; &#8221; BO rows copied&#8221;, vbInformation, &#8220;Transfer Done&#8221;</p>
<p>   End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dee Lauderdale</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1807</link>
		<dc:creator>Dee Lauderdale</dc:creator>
		<pubDate>Tue, 23 Nov 2010 19:38:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-1807</guid>
		<description>Could anybody help a brotha out?

I have excel workbook called that has a tab called &quot;master&quot; that is populated with data from seperate excel workbooks (up 50 different ones!). I only need to copy some of the data from source into the &quot;master&quot; sheet. Here&#039;s what I&#039;m trying to accomplish

First Data Set
copy all data from column A3 until the words &quot;Grand Totals:&quot; (this varies from 1 row all the way to 500 rows) from source to first empty cell under column &quot;c&quot; in &quot;master&quot;

Second Data Set
copy data from U1 in source to first empty cell under column &quot;B&quot; in &quot;master&quot;

Third Data Set
copy data from G1 in source to first empty cell under column &quot;A&quot; in &quot;master&quot;

Any ideas?</description>
		<content:encoded><![CDATA[<p>Could anybody help a brotha out?</p>
<p>I have excel workbook called that has a tab called &#8220;master&#8221; that is populated with data from seperate excel workbooks (up 50 different ones!). I only need to copy some of the data from source into the &#8220;master&#8221; sheet. Here&#8217;s what I&#8217;m trying to accomplish</p>
<p>First Data Set<br />
copy all data from column A3 until the words &#8220;Grand Totals:&#8221; (this varies from 1 row all the way to 500 rows) from source to first empty cell under column &#8220;c&#8221; in &#8220;master&#8221;</p>
<p>Second Data Set<br />
copy data from U1 in source to first empty cell under column &#8220;B&#8221; in &#8220;master&#8221;</p>
<p>Third Data Set<br />
copy data from G1 in source to first empty cell under column &#8220;A&#8221; in &#8220;master&#8221;</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: womi</title>
		<link>http://www.automateexcel.com/2004/08/18/excel_cut_copy_paste_from_a_macro/comment-page-1/#comment-1727</link>
		<dc:creator>womi</dc:creator>
		<pubDate>Mon, 18 Oct 2010 18:12:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-1727</guid>
		<description>Can someone please help me? I am not at all familiar with VBA so would like a code as detailed as possible (with comments).

Here&#039;s what I am trying to do - I would like to automate copying of data from one workbook to another based on some criteria. For example - I am making up the layout of my data for confidentiality reasons but this should give a pretty good idea of what I want -

 I have a workbook called Apartments with a sheet called &quot;Info&quot;. The columns (not starting at the first row) are labeled as &quot;region&quot;, &quot;Number of rooms&quot;, &quot;price&quot;, &quot;square footage&quot;, &quot;security deposit&quot;.

Then I have another workbook called Detail_info with sheets called &quot;south_1&quot;, &quot;south_2&quot;, &quot;south_3&quot;, &quot;north_1&quot;, &quot;north_2&quot;, etc.

What I need to do is somehow automate filtering of workbook Apartments (sheet-Info) to copy Region (ex. South) and Number of Rooms (ex. 1) and then paste this information to workbook Detail_info - sheet South_1. 
I need to do this for all the combinations of region/number of rooms.My list isn&#039;t long so I can type out the combinations in the code if I have a detailed template to work with. Please someone help me!</description>
		<content:encoded><![CDATA[<p>Can someone please help me? I am not at all familiar with VBA so would like a code as detailed as possible (with comments).</p>
<p>Here&#8217;s what I am trying to do &#8211; I would like to automate copying of data from one workbook to another based on some criteria. For example &#8211; I am making up the layout of my data for confidentiality reasons but this should give a pretty good idea of what I want -</p>
<p> I have a workbook called Apartments with a sheet called &#8220;Info&#8221;. The columns (not starting at the first row) are labeled as &#8220;region&#8221;, &#8220;Number of rooms&#8221;, &#8220;price&#8221;, &#8220;square footage&#8221;, &#8220;security deposit&#8221;.</p>
<p>Then I have another workbook called Detail_info with sheets called &#8220;south_1&#8243;, &#8220;south_2&#8243;, &#8220;south_3&#8243;, &#8220;north_1&#8243;, &#8220;north_2&#8243;, etc.</p>
<p>What I need to do is somehow automate filtering of workbook Apartments (sheet-Info) to copy Region (ex. South) and Number of Rooms (ex. 1) and then paste this information to workbook Detail_info &#8211; sheet South_1.<br />
I need to do this for all the combinations of region/number of rooms.My list isn&#8217;t long so I can type out the combinations in the code if I have a detailed template to work with. Please someone help me!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

