1

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:

  1. Select the Data tab
  2. Select Existing connections
  3. Choose the connection one wants.
  4. Press Ok
  5. Press Table at the radio button option
  6. Choose a new sheet (you can choose to put it somewhere in an existing as well but not what i try to do here.)
  7. Press Ok

I can't record a macro while I do this, so do anyone know the VBA code to do this?

Community
  • 1
  • 1
Erik Dahlen
  • 72
  • 1
  • 16

0 Answers0