I have found in another post how to copy PowerPivot data into an Excel 2013 workbook, post. But now I want to do the same thing as the answer but with a macro. (Unfortunately I can't leave a comment so I have to ask it as a new question.)
What I want to do is done by the following steps:
- Select the Data tab
- Select Existing connections
- Choose the connection one wants.
- Press Ok
- Press Table at the radio button option
- Choose a new sheet (you can choose to put it somewhere in an existing as well but not what i try to do here.)
- Press Ok
I can't record a macro while I do this, so do anyone know the VBA code to do this?