Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Creating several smaller worksheets from a 'master sheet'

I need some help and am a bit overwhelmed at the task I've tried to
figure out. I can think of some of the basic tools that I need
(variable for the column A value, loop for the copy/paste protocol)
but I am very very new to the VB world and I can't figure it out. Any
help would be greatly appreciated! Basically, I need to take a 'master
sheet' and copy/paste the information from this large sheet into
several smaller sheets in a new workbook.Below is a pretty good
description of what I'm trying to do.

'Master sheet' has values for Columns A thru G and the number of Rows
varies. Row 1 is the header row, and Column A values are the names of
the 'owner' of the accounts. Each 'owner' needs their own sheet with
their accounts listed

First, all new spreadsheets need to be created in a new Workbook. Row
1 of 'master sheet' is to be placed at Row 1 of each new Sheet in the
new Workbook in Bold Font. The value of cell A2 in 'master sheet' will
be the name of the first Sheet in new the new Workbook.Going row by
row, copy the range of cells from Column A thru Column G into the new
Sheet until you reach a new value in column A in 'master sheet'. Once
you reach a new value in Column A in 'master sheet', start a new Sheet
in the same new Workbook with the new sheet named after the new value
found in Column A of 'master sheet'. Repeat the same row-by-row copy
and paste steps until you find a new value in Column A of 'master
sheet'. Repeat until there are no more values for Column A in Active
Sheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Creating several smaller worksheets from a 'master sheet'

Have a look at the code from Ron de Bruin's site.

Copy records with the same value in a column to a new sheet
or workbook (normal data range)

http://www.rondebruin.nl/copy5.htm


Gord Dibben MS Excel MVP


On Mon, 31 Aug 2009 14:47:30 -0700 (PDT), Matthew Dyer
wrote:

I need some help and am a bit overwhelmed at the task I've tried to
figure out. I can think of some of the basic tools that I need
(variable for the column A value, loop for the copy/paste protocol)
but I am very very new to the VB world and I can't figure it out. Any
help would be greatly appreciated! Basically, I need to take a 'master
sheet' and copy/paste the information from this large sheet into
several smaller sheets in a new workbook.Below is a pretty good
description of what I'm trying to do.

'Master sheet' has values for Columns A thru G and the number of Rows
varies. Row 1 is the header row, and Column A values are the names of
the 'owner' of the accounts. Each 'owner' needs their own sheet with
their accounts listed

First, all new spreadsheets need to be created in a new Workbook. Row
1 of 'master sheet' is to be placed at Row 1 of each new Sheet in the
new Workbook in Bold Font. The value of cell A2 in 'master sheet' will
be the name of the first Sheet in new the new Workbook.Going row by
row, copy the range of cells from Column A thru Column G into the new
Sheet until you reach a new value in column A in 'master sheet'. Once
you reach a new value in Column A in 'master sheet', start a new Sheet
in the same new Workbook with the new sheet named after the new value
found in Column A of 'master sheet'. Repeat the same row-by-row copy
and paste steps until you find a new value in Column A of 'master
sheet'. Repeat until there are no more values for Column A in Active
Sheet.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Creating several smaller worksheets from a 'master sheet'

Thanks! This is incredibly helpful and does what I need it to do but
it looks more complicated than it needed to be with error correction
and whatnot... How would I go about simplifying it?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Creating several smaller worksheets from a 'master sheet'

Hi Matthew

Short code is not always good code (I not say my code is good <g)

What do you want easier ?


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Matthew Dyer" wrote in message ...
Thanks! This is incredibly helpful and does what I need it to do but
it looks more complicated than it needed to be with error correction
and whatnot... How would I go about simplifying it?


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
Creating smaller and larger cells on the same sheet Matt P. Excel Discussion (Misc queries) 1 May 2nd 08 11:04 PM
Creating/Naming New Worksheets Based on Select Cells in Master Worksheet Lilbit Excel Worksheet Functions 2 March 19th 08 05:05 PM
Creating a master sheet referenced to multiple worksheets John Excel Discussion (Misc queries) 0 November 2nd 06 03:31 PM
creating a master sheet that totals values from other sheets robert Excel Programming 2 May 4th 04 04:06 PM
Creating a Master Sheet cw14226 Excel Programming 1 October 31st 03 11:57 PM


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