Guest_imported
New member
- Jan 1, 1970
- 0
I wrote some Excel VBA code that goes through each textbox in a given worksheet and extract text from it. This code works fine in VBA. But, when I move it over to VB so that I can package it as an exe, it does not work.
I have referenced the Excel 9.0 object library, and all myother code works fine, except this one line
Dim tbox as ITextBox
For Each tbox in ActiveSheet.ITextboxes
tbox.Select
-----------
It crashes on the FOR line with an error message
"Object doesn't support this property ot method"
Any help into why this is not working in VB would be much appreciated.
Thanks,
vwadhwan
I have referenced the Excel 9.0 object library, and all myother code works fine, except this one line
Dim tbox as ITextBox
For Each tbox in ActiveSheet.ITextboxes
tbox.Select
-----------
It crashes on the FOR line with an error message
"Object doesn't support this property ot method"
Any help into why this is not working in VB would be much appreciated.
Thanks,
vwadhwan