Forum Discussion

vonryan's avatar
vonryan
Brass Contributor
May 05, 2019
Solved

Copy data from one workbook to another. then delete the original data

Hi All,   I am trying to achieve the following in VBA.   I have a master workbook called Master.xlsm. I have a number of workbooks called Engineer1 to X Engineer workbook only contains 1 worksh...
  • PeterBartholomew1's avatar
    May 06, 2019

    vonryan 

    The screenshot is very close to that given by working versions.

    One thought is that the unit of interaction between PowerQuery and Excel is the Table.  I think it may be possible work with Named Ranges or the UsedRegion of a Sheet but they are not the preferred options. 

     

    Unless you have already done it, I would suggest going through each of your four files and converting the data to a Table [Ctrl/T].  This will give a default name of Table1 but it can be renamed to give some more meaningful reference such as 'EngineeringTask' (the same name in each file).  Then, within the Combine & Edit dialogue, select the Table name to be the basis for extracting data from the sample file.

     

    Fingers crossed this takes us a step forward!

     

     

Resources