Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Copying From Master

I have a master spreadsheet "Master",
with a list (35 lines) of 15 products. e.g. Siemens, Motorola,Nokia (Some
products have more than one line).

I have have another workbook with 15 worksheets (one worksheet for each
product).

I need to write a macro which will copy the lines from the "Master" into
each of the worksheets, so that for example- the Motorola Lines are copied to
the worksheet caleed "Motorola"

Many thanks for your help


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default Copying From Master

Hi Teresa,

Use the following macro, which has been writtin for a button_click.

Sub BMSort()
Dim rng As Range, rng1 As Range
Set rng = Worksheets("Master").Range("A1").CurrentRegion
With Worksheets("Control Panel")
Set rng1 = .Range(.Cells(1, "J"), .Cells(Rows.Count, "J").End(xlUp))
End With
rng.AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=rng1, _
Copytorange:=Worksheets("New Sheet").Range("A1"), Unique:=False
End Sub

You'll need to specify various parameters, to ensure the advance filter
copies the correct info to the correct tab.

Feel free to e-mail me so I can supply specifics.
"teresa" wrote:

I have a master spreadsheet "Master",
with a list (35 lines) of 15 products. e.g. Siemens, Motorola,Nokia (Some
products have more than one line).

I have have another workbook with 15 worksheets (one worksheet for each
product).

I need to write a macro which will copy the lines from the "Master" into
each of the worksheets, so that for example- the Motorola Lines are copied to
the worksheet caleed "Motorola"

Many thanks for your help


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
copying data from master ti individual sheets minimoi Excel Discussion (Misc queries) 3 January 19th 10 09:45 PM
Copying cell value to master report file which is closed? Kevin Excel Worksheet Functions 3 April 8th 07 07:07 PM
Copying parts from a series of worksheets to a master Betsy Excel Worksheet Functions 1 July 7th 06 01:10 PM
Need a shortcut for copying formulas on a master sheet that gets . mlatkovich Excel Programming 1 February 18th 05 07:18 PM
Copying Row Data From Multiple Sheets To Master aus74 Excel Programming 4 November 19th 03 02:19 PM


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