Populating Master list from multiple sheets

T-rev

New Member
Joined
Aug 19, 2011
Messages
34
Hope someone can help...

i have generated a list of "Companies on the ASX"
(Australian Stock Exchange)

There are several work sheets (all populated from data queries) of companies within different sectors e.g all companies within the "energy" sector and so on (one sheet for each sector)

i am trying to populate a master list of all the companies from all of the sectors however there are some conditions i am having trouble meeting...

1. it has to reflect the exact data on the "sector page" after the Query has been refreshed.

2. i have left some formated rows to allow for new listings as the Query updates so i need it to copy each company from each page, something like..

"Energy" Copy A2:K2 - A5000:K5000 (stopping at row 2500 if that is where the last company is on that list, then the same for the next sheet.)

Any help would be greatly appreciated :)
 
soo i have set a formatting macro to delete duplicates and blanks so i can offset by 2 and have it start at A3 of the master sheet, however it is still deleting anything in the cells A1:K2 (headers) whenever i run the macro...
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
This line is?
Code:
    .UsedRange.Offset(2).ClearContents  'remove data, leave titles in row 1:2

I don't see how it could be?

You could use more brute force:
Code:
    .Range("A3:A" & .Rows.Count).EntireRow.ClearContents  'remove data, leave titles in row 1:2
 
Upvote 0
TRev (from Private message) said:
Thanks so much for your help, your truely a VBA master :)

i got it to stop deleting the headers,

if you would be so kind as to aid me in one final step...

i would like to copy the value of the sector name in A1 (which is a merged cell, so value only if possible)
into column I of the master sheet for each individual company.

sorry if this is getting rather tedious...

No problem but keep the discussion public unless discussing sensitive topics.

Copy A1 from where to where?
 
Upvote 0

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top