Excel Macro

Joined
Jun 14, 2011
Messages
1
Reaction score
0
Hi, how can I select an entire row based on a criteria.
I have data in the range A1 to E10. Column B has dates. If the date in this column is same as todays, the entire row should be selected. Can some one provide me a macro for this.
Thanks.
 
Joined
Jun 27, 2011
Messages
5
Reaction score
0
Sub Today_1()
'
' Today_1 Macro
'
'
Selection.AutoFilter
ActiveSheet.Range("$A$1:$E$10").AutoFilter Field:=2, Criteria1:= _
xlFilterToday, Operator:=xlFilterDynamic
Range("A3").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy
Range("A15").Select
ActiveSheet.Paste
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top