PC Review


Reply
 
 
Rpettis31
Guest
Posts: n/a
 
      15th Mar 2008
I am testing to see if the value on in a row is true and If it is true I
would like to paste the row to the next sheet on the first available blank
line.

For DLV = 2 to 1000
For DLV2 = 2 to 1000
If cells(dlv,23) >"" and also cells(dlv,8) <> !DLV CONTAINERS cells(dlv2,8)
then copy this row to sheet DLV CONTAINERS.

I am also not sure if I am referencing the sheet correctly in the if
statement.

Thanks
Robert
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      15th Mar 2008
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.

"Rpettis31" wrote:

> I am testing to see if the value on in a row is true and If it is true I
> would like to paste the row to the next sheet on the first available blank
> line.
>
> For DLV = 2 to 1000
> For DLV2 = 2 to 1000
> If cells(dlv,23) >"" and also cells(dlv,8) <> !DLV CONTAINERS cells(dlv2,8)
> then copy this row to sheet DLV CONTAINERS.
>
> I am also not sure if I am referencing the sheet correctly in the if
> statement.
>
> Thanks
> Robert

 
Reply With Quote
 
Rpettis31
Guest
Posts: n/a
 
      15th Mar 2008
It sort of works it just takes the last know value row that was true and
copy/pastes it. 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.
>
> "Rpettis31" wrote:
>
> > I am testing to see if the value on in a row is true and If it is true I
> > would like to paste the row to the next sheet on the first available blank
> > line.
> >
> > For DLV = 2 to 1000
> > For DLV2 = 2 to 1000
> > If cells(dlv,23) >"" and also cells(dlv,8) <> !DLV CONTAINERS cells(dlv2,8)
> > then copy this row to sheet DLV CONTAINERS.
> >
> > I am also not sure if I am referencing the sheet correctly in the if
> > statement.
> >
> > Thanks
> > Robert

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Internet Explorer 0 22nd Apr 2011 10:08 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Configuration 0 22nd Apr 2011 10:05 AM
Copy local users and groups, copy shares with security, copy homeuser folders usenet@sphere10.com Microsoft Windows 2000 Active Directory 1 17th Feb 2009 01:31 PM
Copy local users and groups, copy shares with security, copy homeuser folders usenet@sphere10.com Windows Vista General Discussion 2 17th Feb 2009 01:31 PM
EXCEL FILE a copy/a copy/a copy ....filename =?Utf-8?B?dmU=?= Microsoft Excel New Users 1 29th Sep 2005 09:12 PM


Features
 

Advertising
 

Newsgroups
 


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