|
-
Dec 2nd, 2015, 05:36 AM
#3
Thread Starter
Lively Member
Re: what is wrong with my code?
 Originally Posted by kebo
Try replacing this
Code:
Dim wb As Microsoft.Office.Interop.Excel.Workbook = XlApp.Workbooks.Open(FPath & dlg.FileName.ToString())
with this...
Code:
Dim wb As Microsoft.Office.Interop.Excel.Workbook = XlApp.Workbooks.Open(dlg.FileName)
The file name includes both the file path and the extension.
work as a charm! thank you
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|