I created an OLE object to embed an .xls file into the table.
...
OLETable2.OLETypeAllowed = acOLEEmbedded
OLETable2.Action = acOLEInsertObjDlg
...
The code works, but in the same time I want to use the original .xls file name and copy and rename it in the same directory ( I used for this the copy method from kernell32.dll which works well for "Application.FileDialog(msoFileDialogFilePicker)" ).
How can I get the file name when the dialog is not simple "open file" but acOLEInsertObjDlg?
Thanks
...
OLETable2.OLETypeAllowed = acOLEEmbedded
OLETable2.Action = acOLEInsertObjDlg
...
The code works, but in the same time I want to use the original .xls file name and copy and rename it in the same directory ( I used for this the copy method from kernell32.dll which works well for "Application.FileDialog(msoFileDialogFilePicker)" ).
How can I get the file name when the dialog is not simple "open file" but acOLEInsertObjDlg?
Thanks