Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filter and copy entire row

Hi,
I'm newbe at VB.
I have a form that runs an table in a work sheet.
I have combox in the form that pull its content from a parameter
sheet.
The qustion is how can I filtter the table trough the combox, and cop
the filtered data into another sheet

10x
yam

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Filter and copy entire row

this pseudo code might give you some ideas:

Private Sub Combobox1_Click()
Dim rng as Range
with worksheets("sheet1")
if .AutofilterMode then .AutofilterMode = False
.Range("A1:F200").AutoFilter Field:=1, Criteria1:=Combobox1.Text
set rng = .Autofilter.Range
rng.offset(1,0).Resize(rng.rows.count-1).Copy _
Destination:=Worksheets("Sheet2").Cells(rows.count ,1).End(xlup)
End With
End Sub

--
Regards,
Tom Ogilvy

"yami-s " wrote in message
...
Hi,
I'm newbe at VB.
I have a form that runs an table in a work sheet.
I have combox in the form that pull its content from a parameters
sheet.
The qustion is how can I filtter the table trough the combox, and copy
the filtered data into another sheet

10x
yami


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Filter and copy entire row

Thanks,
it looks great.
I'll get in the office and try it first thing in the morning
yami


---
Message posted from http://www.ExcelForum.com/

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 only visible cells after filter is applied/ sum after filter MAM Excel Worksheet Functions 0 April 9th 08 04:09 AM
Filter entire columns stevec Excel Discussion (Misc queries) 0 September 8th 06 08:37 PM
Copy an entire sheet Gynandra Excel Discussion (Misc queries) 1 June 28th 06 04:31 AM
Copy Entire Sheet Linda Excel Discussion (Misc queries) 1 June 11th 06 11:04 PM
Copy entire Worksheet how? Stormin' German Excel Programming 2 February 4th 04 12:26 AM


All times are GMT +1. The time now is 12:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"