G
Guest
I am trying to initiate the Import External Data Wizard using code. I'm using
Excel 2003. I've tried using the following code:
Dim ImportData As CommandBarButton
Set ImportData = CommandBars("Worksheet Menu Bar") _
.Controls("Data").Controls("Import External Data").Controls("Import
&Data...")
ImportData.Execute
The above code results in the following error.
2147467259 - Execute Failed
I also tried to use Application.Dialogs, but I was not able to find the
right dialog.
How can I accomplish this?
Excel 2003. I've tried using the following code:
Dim ImportData As CommandBarButton
Set ImportData = CommandBars("Worksheet Menu Bar") _
.Controls("Data").Controls("Import External Data").Controls("Import
&Data...")
ImportData.Execute
The above code results in the following error.
2147467259 - Execute Failed
I also tried to use Application.Dialogs, but I was not able to find the
right dialog.
How can I accomplish this?