LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Filter function; copy values to another sheet

I guess when you said:

and copies the values from the row in colom B to another
sheet, range D1.


I missed the term Userform.

dim v() As Variant
dim rng as Range
Dim sAddr as String
redim v(0 to 0)
with Worksheets("Sheet1").columns(1)
set rng = .find("apples")
if not rng is nothing then
sAddr = rng.Address
do
v(ubound(v)) = rng.offset(0,1)
redim preserve v(0 to ubound(v) + 1)
set rng = .FindNext(rng)
Loop while rng.address < sAddr
Redim preserve v(0 to ubound(v)-1)
Userform1.ListBox1.List = v
end if



--
Regards,
Tom Ogilvy



"jgmiddel" wrote:


I know that function, Tom. That is not a solution. I have to use the
data in a VBA userform.


--
jgmiddel
------------------------------------------------------------------------
jgmiddel's Profile: http://www.excelforum.com/member.php...o&userid=32714
View this thread: http://www.excelforum.com/showthread...hreadid=535590


 
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/filter data in a sheet from another sheet Sheikh Saadi Excel Discussion (Misc queries) 1 November 22nd 07 08:28 AM
Filter function; copy values to another sheet jgmiddel Excel Discussion (Misc queries) 0 April 24th 06 05:15 PM
'Copy to' Advance Filter depend only on sheet ID not start sheet Sandy Yates Excel Worksheet Functions 0 April 4th 06 03:48 AM
copy values generated by conditional formula in one sheet to the other work sheet as values ramana Excel Worksheet Functions 1 October 5th 05 01:04 PM
copy values generated by conditional formula in one sheet to the other work sheet as values bobby Excel Discussion (Misc queries) 1 October 5th 05 12:18 PM


All times are GMT +1. The time now is 10:18 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"