Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default JLG Copy Row

I need help to complete a project.
It sort of works it just takes the last know value row that was true and
copy/pastes it not every row that met the condition as true. It is also
slow, is there another way to speed it up. I have updating false and my calc
to manual.

"JLGWhiz" wrote:

I didn't test this but it should do the job.

If Cells(dlv, 23) "" And Cells(dlv, 8) < _
Sheets("DLV CONTAINERS").Cells(dlv2, 8) Then
lr = Sheets("DLV CONTAINERS").Cells(Rows.Count).End(xlUp).Row
Rows(dlv).Copy Sheets("DLV CONTAINERS").Range("A" & lr + 1)
End If

Check for line wraps in case I didn't get the attenuation mark right.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default JLG Copy Row

add this to the beginning of your code

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

and this to the end:

Application.ScreenUpdating =True
Application.Calculation = xlCalculationAutomatic

--


Gary


"Rpettis31" wrote in message
...
I need help to complete a project.
It sort of works it just takes the last know value row that was true and
copy/pastes it not every row that met the condition as true. It is also
slow, is there another way to speed it up. I have updating false and my calc
to manual.

"JLGWhiz" wrote:

I didn't test this but it should do the job.

If Cells(dlv, 23) "" And Cells(dlv, 8) < _
Sheets("DLV CONTAINERS").Cells(dlv2, 8) Then
lr = Sheets("DLV CONTAINERS").Cells(Rows.Count).End(xlUp).Row
Rows(dlv).Copy Sheets("DLV CONTAINERS").Range("A" & lr + 1)
End If

Check for line wraps in case I didn't get the attenuation mark right.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default JLG Copy Row

Gary,

I already have that done as noted in my initial query.

thanks

"Gary Keramidas" wrote:

add this to the beginning of your code

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

and this to the end:

Application.ScreenUpdating =True
Application.Calculation = xlCalculationAutomatic

--


Gary


"Rpettis31" wrote in message
...
I need help to complete a project.
It sort of works it just takes the last know value row that was true and
copy/pastes it not every row that met the condition as true. It is also
slow, is there another way to speed it up. I have updating false and my calc
to manual.

"JLGWhiz" wrote:

I didn't test this but it should do the job.

If Cells(dlv, 23) "" And Cells(dlv, 8) < _
Sheets("DLV CONTAINERS").Cells(dlv2, 8) Then
lr = Sheets("DLV CONTAINERS").Cells(Rows.Count).End(xlUp).Row
Rows(dlv).Copy Sheets("DLV CONTAINERS").Range("A" & lr + 1)
End If

Check for line wraps in case I didn't get the attenuation mark right.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default JLG Copy Row

sorry, you should post in the same thread then.

--


Gary


"Rpettis31" wrote in message
...
I need help to complete a project.
It sort of works it just takes the last know value row that was true and
copy/pastes it not every row that met the condition as true. It is also
slow, is there another way to speed it up. I have updating false and my calc
to manual.

"JLGWhiz" wrote:

I didn't test this but it should do the job.

If Cells(dlv, 23) "" And Cells(dlv, 8) < _
Sheets("DLV CONTAINERS").Cells(dlv2, 8) Then
lr = Sheets("DLV CONTAINERS").Cells(Rows.Count).End(xlUp).Row
Rows(dlv).Copy Sheets("DLV CONTAINERS").Range("A" & lr + 1)
End If

Check for line wraps in case I didn't get the attenuation mark right.




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
Copy and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
A visual basic value copy BUG?? - accounting format has copy problem!! [email protected] Excel Programming 3 June 20th 06 04:42 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
copy formulas from a contiguous range to a safe place and copy them back later Lucas Budlong Excel Programming 2 February 22nd 06 08:26 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM


All times are GMT +1. The time now is 02:08 AM.

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"