2.1.49 SetRangeName
Contents
Description
Syntax
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 )
Parameters
- strRangeName
- The name of the data range to add or replace.
- strWksName
- The name of the book to receive the data range.
- r1
- The first row (zero based index) of the data range.
- c1
- The first column (zero based index) of the data range.
- r2
- The last row (zero based index) of the data range.
- c2
- The last column (zero based index) of the data range.
Return
Returns true if successful else false.
Remark
Examples
Python
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)
Version Information
8.0SR2