Extracting table from data within Excel using VBA

aminex

New Member
Joined
Feb 10, 2014
Messages
39
Hello everyone,

I have some data, in a xlVeryHidden sheet, with multiple headers. An example is given below.

I would like to auto-generate a table on a different sheet with only revelent headers and filter by source and month/year.
Basically, I want to write a macro that would make this table for, say, January and source1 only, without headers 1, 2 or 3.

(Very similar to the Pivot table, only without combining the data)


I would appreciate any help I can get :)


--------------------------------------------------------------------------------------------------------
SourceTypeRefDateIdHeader 1Header 2Header 3DebitCredit
Source1SalesFGGH895-jan.-14 Customer1info 1info 5info 95,000.000.00
Source2Sales0121/89871-jan.-14 Customer2info 2info 6info 1010,000.000.00
Source1Bill212001976-jan.-14 Provider1info 3info 7info 110.0013,356.72
Source1PurchaseSSQ20132-feb.-14 Provider2info 4info 8info 120.00257.40

<colgroup><col span="4"><col><col span="3"><col span="2"></colgroup><tbody>
</tbody>
--------------------------------------------------------------------------------------------------------
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I have found a workaround using Advancedfilter that copies filtered data to a new workbook, then deleting unwanted columns.
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,395
Members
449,446
Latest member
CodeCybear

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