This is similar to other posts but I couldn't find one that answered exactly what I'm trying to do.
Ultimately I need to let the user import an Excel worksheet, without being an Admin on their machine, and capture the name of the imported worksheet and the name of the table they created/imported to. My thoughts were
1) From a macro, or VBA, open the built in Excel import wizard (External Data > Excel [Import & Link Group]). From what I can tell opening this from a macro should be possible. However, when I create a new macro and go to the Action Catalog > Actions > Data Import/Export there isn't an option in the catalog for importing anything from Excel. So I tried going through VBA, I don't see anything about being able to launch the Excel Import wizard there either. Since the Excel file AND worksheet will be changing and need to be specified by the user I haven't found anything in VBA that gets me to that level. I did find examples on using the import worksheet command but that assumes that you already know the worksheet name (the excel file path can be figured out with a file dialog).
Any ideas? I don't know why the Action Catalog doesn't have a reference for opening the import excel wizard.
2) Assuming we can get Part 1, above, working how could I capture the worksheet name or at the very least the name of the table?
Thanks.