Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Import filter and update master


Hi All

Could I be helped with the following:

I have a worksheet with columns of information that I need to have
filtered by values in Row 6.

Row 6 contains an identifier of 8 products 1 - 8.

I want to filter this and import into 8 different worksheets in a
seperate workbook.

IS that possible?


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=376242

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Import filter and update master

Assuming the worksheetname in the other workbook is the product identifier
in Row 6
Sub DisperseData()
Dim rng as Range
Dim rng1 as Range
Dim cell as Range
Dim v as Variant
With Workbooks("Source.xls").Worksheets("SrcData")
set rng = .Range(.cells(6,1),.cells(6,256).End(xltoLeft))
for each cell in rng
v = cell.Value
set rng1 = Workbooks("Destination.xls") _
.Worksheets(v).Cells(6,256).End(xltoLeft)
if not isempty(rng1) then set rng1 = rng1.offset(0,1)
cell.entirecolumn.Copy Destination:=rng1.EntireColumn
Next
End Sub

--
Regards,
Tom Ogilvy

"Mikeice" wrote in
message ...

Hi All

Could I be helped with the following:

I have a worksheet with columns of information that I need to have
filtered by values in Row 6.

Row 6 contains an identifier of 8 products 1 - 8.

I want to filter this and import into 8 different worksheets in a
seperate workbook.

IS that possible?


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile:

http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=376242



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
Update worksheet from Master workbook txheart Excel Discussion (Misc queries) 1 August 14th 08 05:12 PM
Update worksheet from Master workbook txheart Excel Discussion (Misc queries) 0 August 13th 08 09:17 PM
Update master list with other lists Chab Excel Worksheet Functions 0 August 4th 05 03:46 PM
How to update Macros from Master Macro? Joe HM Excel Programming 2 March 11th 05 12:50 PM
Is it possible to import XML with master-detail data into Excel 2003? Boris Glazyrin Excel Programming 5 May 25th 04 05:19 PM


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