Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hme hme is offline
external usenet poster
 
Posts: 1
Default Range Filtering


Dear Tom

It is working very well. :)
there was 1 space at the end of the range (BUSH )and I didn't conside
that.

Thank you very much.

your help removed tow hold point in my project.
May you be so kind to remove the last one.
In the following I don't want to copy entire row but just from column
to N.

If LCase(sh.Name) < "sheet1" Then
Set rng = sh.Cells.Find(what:="BUSH ", lookat:=xlWhole)
If Not rng Is Nothing Then
rng.EntireRow.Copy Destination:= _
CurrentWkbk.Worksheets("sheet1").Cells(Rows.Count, 1).End(xlUp)(2)

Yours
HM

--
hm
-----------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...fo&userid=1593
View this thread: http://www.excelforum.com/showthread.php?threadid=27697

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Range Filtering

Maybe this will help:

If Not rng Is Nothing Then
rng.EntireRow.Copy Destination:= _
CurrentWkbk.Worksheets("sheet1").Cells(Rows.Count, 1).End(xlUp)(2)
end if

If Not rng Is Nothing Then
sh.cells(rng.row,1).resize(1,14).Copy Destination:= _
CurrentWkbk.Worksheets("sheet1").Cells(Rows.Count, 1).End(xlUp)(2)
end if



hme wrote:

Dear Tom

It is working very well. :)
there was 1 space at the end of the range (BUSH )and I didn't consider
that.

Thank you very much.

your help removed tow hold point in my project.
May you be so kind to remove the last one.
In the following I don't want to copy entire row but just from column A
to N.

If LCase(sh.Name) < "sheet1" Then
Set rng = sh.Cells.Find(what:="BUSH ", lookat:=xlWhole)
If Not rng Is Nothing Then
rng.EntireRow.Copy Destination:= _
CurrentWkbk.Worksheets("sheet1").Cells(Rows.Count, 1).End(xlUp)(2)

Yours
HME

--
hme
------------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...o&userid=15930
View this thread: http://www.excelforum.com/showthread...hreadid=276976


--

Dave Peterson
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
Automatically filtering a range Winston Williams Excel Discussion (Misc queries) 1 June 24th 07 03:03 AM
Filtering a dynamic range Basil Excel Worksheet Functions 5 April 30th 07 06:05 PM
filtering on range of values mkrijger Excel Discussion (Misc queries) 1 February 10th 07 02:11 PM
Range Filtering hme Excel Programming 1 November 10th 04 02:51 PM
Range Filtering hme Excel Programming 1 November 10th 04 12:04 PM


All times are GMT +1. The time now is 10:40 AM.

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"