It worked perfectly, a thousand thank you for your help :)
2010/11/29 ashish koul <[email protected]>
> try this
>
> Sub Macro1()
> Dim z As Long
>
> Sheets("Folha1").Activate
> If Sheets("Folha1").FilterMode Then
> Sheets("Folha1").ShowAllData
> End If
>
> Sheets("Folha1").Range("a65356").Select
> Selection.End(xlUp).Select
> z = ActiveCell.Row
>
> Sheets("Folha1").Range("$A$6:$J" & z).AutoFilter Field:=10,
> Criteria1:="true"
> Selection.Copy
> Sheets("Folha2").Select
> Range("a1").Select
> Sheets("Folha1").AutoFilter.Range.Copy Sheets("Folha2").Range("A1")
>
>
> If Sheets("Folha1").FilterMode Then
> Sheets("Folha1").ShowAllData
> End If
>
> End Sub
>
>
> On Mon, Nov 29, 2010 at 12:59 AM, Jorge Marques <[email protected]>wrote:
>
>> Hi guys i need badly your help,
>>
>> i want to copy the information of the range of cells from A7:G11 if the
>> condition is true, in this case i want it to copy the information of the
>> rows 8 and 10 to sheet number 2, thank you very much in advance, i put in
>> anex an example of what i need.
>>
>> Jorge
>>
>> --
>>
>> ----------------------------------------------------------------------------------
>> Some important links for excel users:
>> 1. Follow us on TWITTER for tips tricks and links :
>> http://twitter.com/exceldailytip
>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>> 3. Excel tutorials at http://www.excel-macros.blogspot.com
>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>>
>> To post to this group, send email to [email protected]
>>
>> <><><><><><><><><><><><><><><><><><><><><><>
>> Like our page on facebook , Just follow below link
>>
>> http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts
>>
>
>
>
> --
> *Regards*
> * *
> *Ashish Koul*
> *akoul*.*blogspot*.com <http://akoul.blogspot.com/>
> *akoul*.wordpress.com <http://akoul.wordpress.com/>
> My Linkedin Profile <http://in.linkedin.com/pub/ashish-koul/10/400/830>
>
>
> P Before printing, think about the environment.
>
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to [email protected]
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts
>
--
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links :
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
To post to this group, send email to [email protected]
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/pages/discussexcelcom/160307843985936?v=wall&ref=ts