PC Review


Reply
Thread Tools Rate Thread

copy data from a list

 
 
john.9.williams@bt.com
Guest
Posts: n/a
 
      13th Mar 2008
I wish to extract data from a range that meets certain critera and
place it on another part of my spreadsheet, I am using a simple filter
and copy and paste, was wondering if I could do it with out activated
the sheet, heres what i am using at the mo

CST = Range("D7")
Application.ScreenUpdating = False
Workbooks.Open Filename:= _
"http://10.234.95.121/Complex_Job_Lists/Wlr3/PreCalling.csv"

Selection.AutoFilter

Selection.AutoFilter Field:=2, Criteria1:=CST

Range("A2:l54000").Select
Selection.Copy
Windows("end user calling list ver8.xls").Activate
Sheets("database").Select
Range("B15").Select
ActiveSheet.Paste
Range("B4").Select
Range("A15:A1000").ClearContents
Range("A14").Select
 
Reply With Quote
 
 
 
 
BlueWolverine
Guest
Posts: n/a
 
      13th Mar 2008
This is probably not a complete solution but a strategy.

YOu could do something resembling

dim array() as variant
redim array(NumCellsInrange)
lcv=0
for each cell in range
if cell meets criteria then
array(lcv) = cell.value
lcv=lcv+1
endif

next cell
--
BlueWolverine
MSE - Mech. Eng.
Go BLUE!


"(E-Mail Removed)" wrote:

> I wish to extract data from a range that meets certain critera and
> place it on another part of my spreadsheet, I am using a simple filter
> and copy and paste, was wondering if I could do it with out activated
> the sheet, heres what i am using at the mo
>
> CST = Range("D7")
> Application.ScreenUpdating = False
> Workbooks.Open Filename:= _
> "http://10.234.95.121/Complex_Job_Lists/Wlr3/PreCalling.csv"
>
> Selection.AutoFilter
>
> Selection.AutoFilter Field:=2, Criteria1:=CST
>
> Range("A2:l54000").Select
> Selection.Copy
> Windows("end user calling list ver8.xls").Activate
> Sheets("database").Select
> Range("B15").Select
> ActiveSheet.Paste
> Range("B4").Select
> Range("A15:A1000").ClearContents
> Range("A14").Select
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy data from list box to sheets Mark Microsoft Excel Programming 0 18th Jun 2009 01:40 PM
Retrieve multiple data rows data from a very long list and copy t =?Utf-8?B?TWF0aGV3?= Microsoft Excel Misc 1 13th Sep 2006 08:24 PM
Copy Data List rhovey Microsoft Excel Misc 1 10th Apr 2006 11:00 PM
Copy data in filtered list Andre Croteau Microsoft Excel Misc 3 20th May 2004 10:54 PM
copy data from a list to another sheet karaeloko Microsoft Excel Programming 4 14th Nov 2003 05:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:05 AM.