Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Automatically Cut Row of Data and Paste to Other Sheet?

Hey guys-
You have all been soo wonderful about helping me out on the other issues- I
decided to throw this one at you...

I have searched newsgroups, this forum, etc, and see references to this, but
not to do exactly as I need done. So maybe someone can throw me in the right
direction here...

I have a column of numeric values. IF the cell value is negative or less
than zero, I want the entire ROW that it sits on cut and pasted onto the
worksheet named 'Check Status' within the sale file. This row(s) would be
pasted to the first available cell on that sheet. I would like this all done
automatically. How do I do this?
Thank you soo much in advance!
D


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Automatically Cut Row of Data and Paste to Other Sheet?

Hello D
Have a try with this non-tested sample code (you will need to amend
accordingly with sheet names and ranges)
The following code will filter sheet "Feuil1" (data from column A to E)
with criteria for values in column C less then zero
It will then cut the filtered rows and paste them onto sheet "Feuil2"
starting from the first available row in colmun A.

Dim LastRow As Long
LastRow = Worksheets("Feuil1").Range("A65536").End(xlUp).Row
Worksheets("Feuil1").Range("C:C").AutoFilter Field:=1, Criteria1:="<0"
Application.DisplayAlerts = False
Worksheets("Feuil1").Range("A2:E" &
LastRow).SpecialCells(xlCellTypeVisible).Cut
Worksheets("Feuil2").Range("A65536").End(2).Paste
Application.DisplayAlerts = True
Application.CutCopyMode = False
Worksheets("Feuil1").Range("C1").AutoFilter

HTH
Regards
Pascal

"D" a écrit dans le message de
news:T5tAc.5809$tC5.1708@fed1read02...
Hey guys-
You have all been soo wonderful about helping me out on the other issues-

I
decided to throw this one at you...

I have searched newsgroups, this forum, etc, and see references to this,

but
not to do exactly as I need done. So maybe someone can throw me in the

right
direction here...

I have a column of numeric values. IF the cell value is negative or less
than zero, I want the entire ROW that it sits on cut and pasted onto the
worksheet named 'Check Status' within the sale file. This row(s) would be
pasted to the first available cell on that sheet. I would like this all

done
automatically. How do I do this?
Thank you soo much in advance!
D




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Automatically Cut Row of Data and Paste to Other Sheet?

Can anyone help on this?


"D" wrote in message news:T5tAc.5809$tC5.1708@fed1read02...
Hey guys-
You have all been soo wonderful about helping me out on the other issues-

I
decided to throw this one at you...

I have searched newsgroups, this forum, etc, and see references to this,

but
not to do exactly as I need done. So maybe someone can throw me in the

right
direction here...

I have a column of numeric values. IF the cell value is negative or less
than zero, I want the entire ROW that it sits on cut and pasted onto the
worksheet named 'Check Status' within the sale file. This row(s) would be
pasted to the first available cell on that sheet. I would like this all

done
automatically. How do I do this?
Thank you soo much in advance!
D




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automatically paste cells from one sheet to another sheet? Jenni Excel Discussion (Misc queries) 1 March 24th 10 11:16 PM
invoice on sheet 1 & data store on sheet 2 automatically Sudipta Sen[_2_] Excel Discussion (Misc queries) 2 November 25th 09 01:38 PM
Copy and paste cahrt to new sheet-update data automatically? SKlee Charts and Charting in Excel 5 May 28th 07 02:00 PM
create a formula in one sheet that would read data from separate sheet automatically QD Excel Discussion (Misc queries) 0 December 8th 06 04:17 AM
can entered data in sheet 1 be automatically pasted in sheet 2 Adnan Jahangir Excel Discussion (Misc queries) 1 February 23rd 06 10:06 AM


All times are GMT +1. The time now is 09:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"