D McLellan
New Member
- Joined
- Sep 16, 2008
- Messages
- 3
I am using Visual Studio 2008 Professional Trial Edition, when i use the following code -
PublicClass Form1
Dim thisWB As Excel.Workbook = CType(Globals.ThisWorkbook, Excel.Workbook)
EndClass
i receive the following error message. "1. Runtime errors might occur when converting 'Excelwork1.thisworkbook' to 'Microsoft.Office.Interop.Excel.Workbook'"
Can you help?
PublicClass Form1
Dim thisWB As Excel.Workbook = CType(Globals.ThisWorkbook, Excel.Workbook)
EndClass
i receive the following error message. "1. Runtime errors might occur when converting 'Excelwork1.thisworkbook' to 'Microsoft.Office.Interop.Excel.Workbook'"
Can you help?