VB: Function SetRangeName(strRangeName As ByVal String, strWksName As ByVal String, r1 As ByVal Object, c1 As ByVal Object, r2 As ByVal Object, c2 As ByVal Object ) As Boolean
C++: bool SetRangeName(LPCSTR strRangeName, LPCSTR strWksName, _variant_t r1, _variant_t c1, _variant_t r2, _variant_t c2 )
C#: bool SetRangeName(string strRangeName, string strWksName, var r1, var c1, var r2, var c2 )
Returns true if successful else false.
import OriginExt as O app = O.Application(); app.Visible = app.MAINWND_SHOW pageName = app.CreatePage(app.OPT_WORKSHEET) app.SetRangeName("myrng", pageName, 0,0,10,1)
8.0SR2