Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 26th, 2004, 08:26 AM
Authorized User
Join Date: Jan 2004
Location: , , .
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default select rows based on a criteria and paste


I want to select rows from a range (variable) of rows. The criteria is tht the value in the 'Complaints' col shud be "OEPN". Then i want to paste these rows in sheet 3 of the same workbook.

Please help!

Reply With Quote
  #2 (permalink)  
Old July 26th, 2004, 11:25 AM
Authorized User
Join Date: Jun 2004
Location: Sandown, Isle of Wight, United Kingdom.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts

you should try something like this.

Private Sub FilterData()

Worksheets("Data").Range("A1").AutoFilter Field:=6, Criteria1:="Open"
Worksheets("Data").Range("A1").CurrentRegion.Copy Destination:=Worksheets("Filtered").Range("A1")

End Sub

Reply With Quote
  #3 (permalink)  
Old July 30th, 2004, 01:32 AM
Authorized User
Join Date: Jan 2004
Location: , , .
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks! It worked. :)

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple criteria on a select query? jihadbuster XSLT 4 March 19th, 2008 01:52 PM
sum group values based on cell criteria darkdestroyer Excel VBA 1 January 9th, 2008 09:13 PM
attach excel content to emails,based on criteria miracles Excel VBA 0 May 21st, 2007 09:45 PM
'Search Form' based on criteria Grafixx01 Access 7 May 4th, 2007 09:39 AM
Report Heading Based On Selection Criteria Fo CloudNine Access 5 March 4th, 2004 08:09 PM

All times are GMT -4. The time now is 06:04 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.