Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default I hope I ask this correctly

I have an Excel question which I hope I explain clearly. I have a worksheet that has the first line as headings and then a ton of data. The data will se sorted by column A and then column B (column A contains building codes and column B is the floor number). Anyway, is there a way to "parse" the worksheet so that all the individual building codes (and all related data) plus the headings are copied/pasted into a separate worksheet within the same spreadsheet? So, if I have 50 different building codes I would like to result to be 50 separate worksheets in the spreadsheet each containing a specific building code with its data (plus the heading).

Does that make sense?

Thanks very much.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default I hope I ask this correctly

Yes this makes sense!

what you need to do is record a macro where you use
filters, this way you can create the individual sheets
with, the headers.

what you need to do:-

1) start recording macro

2) set data- filters- auto filter

3) select a value from column A for your filter

4) select all - copy

5) create new page - rename "same name as filter value"

6) paste all data into new page

7) select initial page - take data- filter- auto filter OFF

8) stop recording macro

now you will see how the macro is used you can ask
specific questions for any areas not understood, but we
can modify it from there!

Robert Couchman
)
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default I hope I ask this correctly

Robert,

Thank you very much for yuor thoughts. I figured that this method (macro) was going to be the solution. Now, to tweak your instructions:

What modifications need to be made to the macro so that this process takes place for every value I have in my filter? Right now I believe the macro works for individually selected values in the filter. Can the macro be re-written such that it will automatically perform this process for each value in the filter?

Once again, thank you for your assistance.

Mark
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default I hope I ask this correctly

Can't tell you how to change a macro if we can't see it.

--
Regards,
Tom Ogilvy

"Mark" wrote in message
...
Robert,

Thank you very much for yuor thoughts. I figured that this method (macro)

was going to be the solution. Now, to tweak your instructions:

What modifications need to be made to the macro so that this process takes

place for every value I have in my filter? Right now I believe the macro
works for individually selected values in the filter. Can the macro be
re-written such that it will automatically perform this process for each
value in the filter?

Once again, thank you for your assistance.

Mark



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
Hope this is easy RobertG Excel Discussion (Misc queries) 3 May 18th 10 07:13 PM
Simple one I hope???? Kev Excel Discussion (Misc queries) 2 May 10th 07 02:06 PM
Hope someone can help me Jay Blatherwick Excel Discussion (Misc queries) 1 June 15th 06 06:03 PM
Hope someone here can help me AlienBeans Excel Discussion (Misc queries) 9 March 17th 06 12:37 AM
An easy one i hope [email protected] Excel Discussion (Misc queries) 1 December 23rd 05 02:05 PM


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