Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default creating new sheets based on specific data


Hello everyone. I need some help, and always seem to find my answers
here! I have a spreadsheet with a bunch of different accounts on it.
Column F contains a code which determines what group the account
belongs in. I need to split the data into separate spreadsheets based
on this code. in addition, every code will not be there everytime. How
do I write a macro to evaluate column F, and take all accounts with
certain codes and move them to a new sheet. Also, how do I stop the
macro from erroring out, if one of the codes does not exist? Here is a
sample of my spreadsheet:

A B C D E F
EN4590 TX 4/30/2004 544.1 DD MBOEAS-3
EN1155 IL 5/21/2004 503.85 ER MBOAEA-3
DT8455 IL 8/18/2003 165.44 GS MBOAEE-3
EN4590 TX 4/30/2004 544.1 WB MBOQBL-1
EN1155 IL 5/21/2004 503.85 IF MBOCA1-1

in this example, all rows would be split to their own spreadsheet. If
there was more than one account with the same code in F, they would go
to the same spreadsheet. I do need to hard code the various codes into
the Macro, as the spreadsheets will be saved with names relating to
those codes, so I need a way to prevent errors if a certain code does
not exist. Please help! Thank you!


--
dfeld71
------------------------------------------------------------------------
dfeld71's Profile: http://www.excelforum.com/member.php...o&userid=21452
View this thread: http://www.excelforum.com/showthread...hreadid=377807

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default creating new sheets based on specific data

This is being answered in the Excel Programming Newsgroup rather than Excel
Forum, so it may not be useful to you, but Ron de Bruin has written sample
code to perform copies such as this. Look at his site

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

--
Regards,
Tom Ogilvy

"dfeld71" wrote in
message ...

Hello everyone. I need some help, and always seem to find my answers
here! I have a spreadsheet with a bunch of different accounts on it.
Column F contains a code which determines what group the account
belongs in. I need to split the data into separate spreadsheets based
on this code. in addition, every code will not be there everytime. How
do I write a macro to evaluate column F, and take all accounts with
certain codes and move them to a new sheet. Also, how do I stop the
macro from erroring out, if one of the codes does not exist? Here is a
sample of my spreadsheet:

A B C D E F
EN4590 TX 4/30/2004 544.1 DD MBOEAS-3
EN1155 IL 5/21/2004 503.85 ER MBOAEA-3
DT8455 IL 8/18/2003 165.44 GS MBOAEE-3
EN4590 TX 4/30/2004 544.1 WB MBOQBL-1
EN1155 IL 5/21/2004 503.85 IF MBOCA1-1

in this example, all rows would be split to their own spreadsheet. If
there was more than one account with the same code in F, they would go
to the same spreadsheet. I do need to hard code the various codes into
the Macro, as the spreadsheets will be saved with names relating to
those codes, so I need a way to prevent errors if a certain code does
not exist. Please help! Thank you!


--
dfeld71
------------------------------------------------------------------------
dfeld71's Profile:

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



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
How to update data from multiple sheets to one specific sheets Khawajaanwar Excel Discussion (Misc queries) 4 January 15th 10 07:31 AM
linking data to specific sheets SPL Excel Discussion (Misc queries) 0 February 11th 09 05:51 PM
Creating Aggregate Data by Customer Name for Specific Date Range [email protected] Excel Discussion (Misc queries) 2 December 6th 07 01:46 PM
Creating Bespoke Template - how do I bring up a specific data rang Peterwnixon Excel Discussion (Misc queries) 0 January 2nd 07 12:37 PM
populating sheets based on data from parent sheets seve Excel Discussion (Misc queries) 2 January 15th 05 09:22 PM


All times are GMT +1. The time now is 03:30 PM.

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"