Please check the following code in basic
<code>
Function FindUsedRange(ByVal oSheet as Object)
Dim oCell As Object
Dim oCursor As Object
oCell = oSheet.getCellByPosition(0, 0)
oCursor = oSheet.createCursorByRange(oCell)
oCursor.gotoStartOfUsedArea(False)
oCursor.GotoEndOfUsedArea(True)
FindUsedRange = oCursor
End Function
</code>
What is the problem in the line 'oCell = oSheet.getCellByPosition(0,
0)'? It is showing an error with comment 'Basic runtime error '91'
Object variable not set..'
--
..............................
Junise Safvan
www.gnuise.co.cc
9746 283 383
_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]