Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the file name when using OLEEmbeded objects

Status
Not open for further replies.

emnet24

Programmer
Jan 21, 2007
1
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top