Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Macro: Filter Multiple header then extract to Multiple Files

There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Macro: Filter Multiple header then extract to Multiple Files

Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Macro: Filter Multiple header then extract to Multiple Files

Hi Niegel

How do I get the total

you can insert a formula with code in each sheet and also insert the header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

The code works well and i did some tweaks to it.

What I'm trying to do is at the end of every file created, I would like
to sum up all the values per column. There are also some columns that
shows the average and difference instead of the sum.

I have a formula at hand however, I don't know how to do it in the
script. Ideally, I want to find the first available cell per column
(after the data) and put the formulas to it to summarize the report.




Ron de Bruin wrote:
Hi Niegel

How do I get the total

you can insert a formula with code in each sheet and also insert the header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

The code works well and i did some tweaks to it.

What I'm trying to do is at the end of every file created, I would like
to sum up all the values per column. There are also some columns that
shows the average and difference instead of the sum.

I have a formula at hand however, I don't know how to do it in the
script. Ideally, I want to find the first available cell per column
(after the data) and put the formulas to it to summarize the report.




Ron de Bruin wrote:
Hi Niegel

How do I get the total

you can insert a formula with code in each sheet and also insert the header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet) then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Macro: Filter Multiple header then extract to Multiple Files

The code looks like this
Example for Column C

Range("C" & Rows.Count).End(xlUp).Offset(2, 0).FormulaR1C1 =
"=SUM(R1C:R[-2]C)"

If you need help changing the code post back



--

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



wrote in message
oups.com...
The code works well and i did some tweaks to it.

What I'm trying to do is at the end of every file created, I would like
to sum up all the values per column. There are also some columns that
shows the average and difference instead of the sum.

I have a formula at hand however, I don't know how to do it in the
script. Ideally, I want to find the first available cell per column
(after the data) and put the formulas to it to summarize the report.




Ron de Bruin wrote:
Hi Niegel

How do I get the total

you can insert a formula with code in each sheet and also insert the
header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and
extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column
Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet)
then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

great! Thanks Ron!


Ron de Bruin wrote:
The code looks like this
Example for Column C

Range("C" & Rows.Count).End(xlUp).Offset(2, 0).FormulaR1C1 =
"=SUM(R1C:R[-2]C)"

If you need help changing the code post back



--

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



wrote in message
oups.com...
The code works well and i did some tweaks to it.

What I'm trying to do is at the end of every file created, I would like
to sum up all the values per column. There are also some columns that
shows the average and difference instead of the sum.

I have a formula at hand however, I don't know how to do it in the
script. Ideally, I want to find the first available cell per column
(after the data) and put the formulas to it to summarize the report.




Ron de Bruin wrote:
Hi Niegel

How do I get the total
you can insert a formula with code in each sheet and also insert the
header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and
extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column
Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet)
then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel





  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Macro: Filter Multiple header then extract to Multiple Files

Sorry to be a pest...

but what If I need the sum based on the header name instead of the
Column letters?


Ron de Bruin wrote:
The code looks like this
Example for Column C

Range("C" & Rows.Count).End(xlUp).Offset(2, 0).FormulaR1C1 =
"=SUM(R1C:R[-2]C)"

If you need help changing the code post back



--

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



wrote in message
oups.com...
The code works well and i did some tweaks to it.

What I'm trying to do is at the end of every file created, I would like
to sum up all the values per column. There are also some columns that
shows the average and difference instead of the sum.

I have a formula at hand however, I don't know how to do it in the
script. Ideally, I want to find the first available cell per column
(after the data) and put the formulas to it to summarize the report.




Ron de Bruin wrote:
Hi Niegel

How do I get the total
you can insert a formula with code in each sheet and also insert the
header
rows.

First is the code working for you now ?
Total ?? do you want the sum of a column ?

Please give more information that I can help you



--

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



wrote in message
oups.com...
How do I get the total for each page (since they have different range)

Also, Since I have multiple headers, How do I copy those headers to the
individual sheets as well.


Ron de Bruin wrote:
Note : the header in row 6 must be unique
If not the macro is not working correct

--

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



"Ron de Bruin" wrote in message
...
There is a workbook example on this page
http://www.rondebruin.nl/copy5.htm

But first add a empty row between row 5 and 6 so you have a one line
header
Make the row height 0 so it looks like you have a 6 row header

Then use

Set rng = ws1.Range("A7").CurrentRegion '<<< Change


--

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



wrote in message
ups.com...
Help!!!

I came accross several post pertaining to autofiltering and
extracting
to different sheets, However, What I need to do is this:

Having a File with 6 lin Header
(Company Name, Project Name, Document Name, Date, then Column
Labels)

I have the rep number on Column "A" starting at "A7"

I have to compile the records of each rep to one file (not sheet)
then
get the total for each sheet at the bottom.

Any help will be greatly appreciated.

Niegel





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
Loop Macro a variable number of times thesaxonuk Excel Discussion (Misc queries) 11 October 31st 06 06:05 PM
Run multiple excel files off of one macro. ahsya Excel Worksheet Functions 1 October 3rd 06 11:43 PM
How do i auto create multiple files from 1 with multiple sheets Kathy Excel Worksheet Functions 0 July 26th 05 01:23 AM
multiple text files URGENT tasha Excel Discussion (Misc queries) 1 December 19th 04 05:44 PM
importing multiple text files??? tashayu Excel Discussion (Misc queries) 0 December 19th 04 02:43 PM


All times are GMT +1. The time now is 03:15 AM.

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"