M
Mahesh_D
Hi,
I want to know the name of the file being used when importing it using "Get
External Data from Text" option.
So on clicking this option, I have added the following code. But it doesn't
give the filename.
Try
Dim dlg As Excel.Dialog
Dim userAction As Long
dlg =
ThisAddIn.Application.Dialogs(Excel.XlBuiltInDialog.xlDialogImportTextFile)
userAction = dlg.Show()
Debug.WriteLine("Name -> " + dlg.Name.ToString())
Catch ex As Exception
Debug.WriteLine("Exception is -> " + ex.Message)
End Try
how should i get name of the file being imported ?
Thanks
Mahesh
I want to know the name of the file being used when importing it using "Get
External Data from Text" option.
So on clicking this option, I have added the following code. But it doesn't
give the filename.
Try
Dim dlg As Excel.Dialog
Dim userAction As Long
dlg =
ThisAddIn.Application.Dialogs(Excel.XlBuiltInDialog.xlDialogImportTextFile)
userAction = dlg.Show()
Debug.WriteLine("Name -> " + dlg.Name.ToString())
Catch ex As Exception
Debug.WriteLine("Exception is -> " + ex.Message)
End Try
how should i get name of the file being imported ?
Thanks
Mahesh