Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Writing Rows To A Spreadsheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sheldon - 18 Jan 2008 22:27 GMT
This is just an example of what I want to do but if I have a worksheet
with, say, 10 rows and 3 columns and I want to write out certain rows
to a new spreadsheet, how can I do that in VBA for Excel?  Here are
the specifics:

Row 1 has field headings and should be in every new spreadsheet that
will be created.

Column B in rows 2-10 has the following values in order: (In the
"real" spreadsheet, I don't know how many rows there will be).

red
red
green
green
green
blue
blue
blue
blue
brown

I would like to create four spreadsheets based on the four unique
colors as follows:
Spreadsheet 1 should contain rows 1-3 from the original spreadsheet
and should be named red.xls.  Spreadsheet 2 should contain row 1 and
rows 3-5 from the original spreadsheet and be named green.xls, etc.
Any suggestions would be greatly appreciated.

Thank you,
Sheldon Potolsky
Dave Peterson - 19 Jan 2008 00:58 GMT
I'd start with one of these:

Ron de Bruin's EasyFilter addin:
http://www.rondebruin.nl/easyfilter.htm

Code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

Create New Sheets from Filtered List -- uses an Advanced Filter to create
separate sheet of orders for each sales rep visible in a filtered list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

Update Sheets from Master -- uses an Advanced Filter to send data from
Master sheet to individual worksheets -- replaces old data with current.
AdvFilterCity.xls 55 kb

> This is just an example of what I want to do but if I have a worksheet
> with, say, 10 rows and 3 columns and I want to write out certain rows
[quoted text clipped - 27 lines]
> Thank you,
> Sheldon Potolsky

Signature

Dave Peterson

Sheldon - 22 Jan 2008 14:17 GMT
Dave,
Where can I find AdvFilterRepFiltered.xls or AdvFilterCity.xls? (I
didn't see them in Ron or Debra's site).
Thanks, Sheldon

Create New Sheets from Filtered List -- uses an Advanced Filter to
create
separate sheet of orders for each sales rep visible in a filtered
list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

Update Sheets from Master -- uses an Advanced Filter to send data from
Master sheet to individual worksheets -- replaces old data with
current.
AdvFilterCity.xls 55 kb

> I'd start with one of these:
>
[quoted text clipped - 47 lines]
>
> - Hide quoted text -
Dave Peterson - 22 Jan 2008 15:11 GMT
There are links at the end of each description on Debra's site.

> Dave,
> Where can I find AdvFilterRepFiltered.xls or AdvFilterCity.xls? (I
[quoted text clipped - 63 lines]
> >
> > - Hide quoted text -

Signature

Dave Peterson

Herbert Seidenberg - 20 Jan 2008 17:26 GMT
Here is a sample file using
Pivot Table or Advanced Filter,
but not VBA.
http://www.freefilehosting.net/download/3aj82
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.