Re: selecting specific columns with data and put it in a new sheet
- From: "A. Karatas" <a.karatas@xxxxxxxxx>
- Date: Wed, 06 Jun 2007 02:30:45 -0700
Ok, I will try to describe it clearer :)
I am provided with a database which is approx 20000 lines and 140
columns. I don't need all the columns to produce a report on a monthly
basis. The last couple of months I build a excel document with various
pivottables wich selects data from certain fixed columns. Headquarters
decided to change the column layout of the database which effects the
pivottables I produce. To overcome changes in the future I want to
sort out the handed out database with the columns I need before I put
it into my mastersheet for the pivottables to do their job.
So the plan is that the macro looks in a range (in row format) on
sheet (for example) 'assumption' where the selected column names are
put in manually. It looks at cellvalue A1 and than tries to find this
column name in the database. When cellvalue is found in row 1 (of the
database) the macro than selects the complete column and copies it
into a new sheet in column A. By a loop it then looks for cellvalue A2
on sheet assumption and copies the found column in column B till the
end is reached of the searchrow in sheet assumption.
The idea is that instead of using the entire database, I am making a
pre selection of the columns needed. In this way the build
exceldocumnt is not effected by changes made by headquarters. With
the selection row in sheet assumption I will be flexible in choosing
rather than rebuilding the document again (pivottables etc).
Hopefully I am clearer now :)
.
- Follow-Ups:
- Re: selecting specific columns with data and put it in a new sheet
- From: A. Karatas
- Re: selecting specific columns with data and put it in a new sheet
- References:
- selecting specific columns with data and put it in a new sheet
- From: A. Karatas
- Re: selecting specific columns with data and put it in a new sheet
- From: paul . robinson
- selecting specific columns with data and put it in a new sheet
- Prev by Date: Re: To delete specific color index row
- Next by Date: Re: Small Macro Revision - to highlight rows and enter how many times they appear in a cell rather than a msg box.
- Previous by thread: Re: selecting specific columns with data and put it in a new sheet
- Next by thread: Re: selecting specific columns with data and put it in a new sheet
- Index(es):
Relevant Pages
|