Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
chrisdtran
 
Posts: n/a
Default Run a macro to copy selective items


I receive daily several lists of part orders from the customer in Excel
file that I do not have any control of.
In the Excel file:
Column A contents catergory 1 to 100
Column B contents items descriptions of each catergory (about 20
different items per catergory)
Column C contents quantities of each item that are changed daily.


How can I run a macro that will copy from the customer Excel file and
paste only certain catergories within my department (i.g catergory 1
-20) and ignore the rests.

Appreciate for any of your help

Chris


--
chrisdtran
------------------------------------------------------------------------
chrisdtran's Profile: http://www.excelforum.com/member.php...o&userid=15962
View this thread: http://www.excelforum.com/showthread...hreadid=395190

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I'd create a worksheet with just the categories I wanted in column A.

Then I'd add a formula to each row that checks the category against this list.

=isnumber(match(a2,sheet2!a:a,0))

(and drag down)

Then apply Data|filter|autofilter to that helper column.
filter to show just the True's.

Copy the visible cells and paste where you need to.

chrisdtran wrote:

I receive daily several lists of part orders from the customer in Excel
file that I do not have any control of.
In the Excel file:
Column A contents catergory 1 to 100
Column B contents items descriptions of each catergory (about 20
different items per catergory)
Column C contents quantities of each item that are changed daily.

How can I run a macro that will copy from the customer Excel file and
paste only certain catergories within my department (i.g catergory 1
-20) and ignore the rests.

Appreciate for any of your help

Chris

--
chrisdtran
------------------------------------------------------------------------
chrisdtran's Profile: http://www.excelforum.com/member.php...o&userid=15962
View this thread: http://www.excelforum.com/showthread...hreadid=395190


--

Dave Peterson
  #3   Report Post  
chrisdtran
 
Posts: n/a
Default


I will try that. Thanks a lot for your help Dave


--
chrisdtran
------------------------------------------------------------------------
chrisdtran's Profile: http://www.excelforum.com/member.php...o&userid=15962
View this thread: http://www.excelforum.com/showthread...hreadid=395190

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
macro to copy and edit then delete a worksheet lschuh Excel Discussion (Misc queries) 13 July 27th 05 09:02 PM
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM
Macro that copy page to page just some filled cells LC Excel Discussion (Misc queries) 0 May 13th 05 11:22 PM
Automatically copy selective sheets from one workbook to another Ann Excel Discussion (Misc queries) 0 March 1st 05 07:09 PM
copy macro assigned buttons in an array Phatboy_D Excel Worksheet Functions 1 December 1st 04 10:01 PM


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

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

About Us

"It's about Microsoft Excel"