- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I wrote folowing code to select one of sheet in the Excel workbook, but I got "Severe Error(157) , Programing Exception, Access Violation" Message.
I couldn't find where y made mistake.
Is there anybody to help me, please?
status = VariantClear(vBSTR1)
bstr1 = 0
vInt%VT = VT_I4
vInt%VU%LONG_VAL = 1
CALL VariantInit(vBSTR1)
vBSTR1%VT = VT_BSTR
bstr1 = ConvertStringToBSTR("ABCD")
! "ABCD" is name of worksheet to be selected.
vBSTR1%VU%PTR_VAL = bstr1
call $Worksheet_Select(worksheet,vBSTR1,$status=status)
I couldn't find where y made mistake.
Is there anybody to help me, please?
status = VariantClear(vBSTR1)
bstr1 = 0
vInt%VT = VT_I4
vInt%VU%LONG_VAL = 1
CALL VariantInit(vBSTR1)
vBSTR1%VT = VT_BSTR
bstr1 = ConvertStringToBSTR("ABCD")
! "ABCD" is name of worksheet to be selected.
vBSTR1%VU%PTR_VAL = bstr1
call $Worksheet_Select(worksheet,vBSTR1,$status=status)
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page