Combine Files Issue - Picking up Newly Added Columns

leishtheman

New Member
Joined
Oct 1, 2007
Messages
32
Hello

I'm using the combine files method to suck in ~50 files which are identical in structure but differ in content (e.g. 1 for each different supplier) if that makes sense. Each of the 50 files has 45 fields.

Yesterday I discovered a need to add a 46th field to newly added files to the folder only, i.e. from the 51st file and beyond. During testing, I found that the refresh picks up the 51st file but the new 46th field is missing. I've examined the M code to see if 45 is coded in there somewhere, but it isn't. Therefore I'm at a loss as to how to pick up the new field.

Anybody know the answer?
Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Somewhere in your query you probably have something like a Table.ExpandTableColumns step that specifies the columns to extract from the table returned for each file. You'll need to add to the list of column names.
 
Upvote 0

Forum statistics

Threads
1,215,260
Messages
6,123,926
Members
449,135
Latest member
NickWBA

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