Search found 37 matches: usedrange

Return to advanced search

Re: Fivewin and ADO

... object that is already open. 3. Obtains the specified sheet object. Defaults to the ActiveSheet 4. Obtains the range object. Defaults to the UsedRange. All this work requires long lines of program code and this function simplifies the entire work. If the user has already any Excel file open ...
by nageswaragunupudi
Fri Jun 09, 2023 8:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin and ADO
Replies: 36
Views: 3802

Re: Fivewin and ADO

... the function oRange   := GetExcelRange( cBook, [cSheet], [cRange] ) cSheet defaults to ActiveSheet and cRange to UsedRange. Please try with any other excel book on your disk, using this single line code: XBROWSER GetExcelRange( cExcelBookNameFullPath ) ...
by nageswaragunupudi
Thu Jun 08, 2023 11:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fivewin and ADO
Replies: 36
Views: 3802

Error toleauto

... Muestra en pantalla la planilla Excel oBook := oExcel:Workbooks:Open( cFile ) oHoja := oExcel:Get( "ActiveSheet" ) nTotRowCount := oHoja:UsedRange:Rows:Count() * y me da el error: Error description: Error toleauto/65535 TOLEAUTO:NEW Called from: => THROW(0) Called from: source/rtl/win32ole.prg ...
by pedroluis
Sun Feb 05, 2023 2:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error toleauto
Replies: 2
Views: 309

Re: GetExcelRange wrong return

By default, it will select
oSheet:UsedRange.

And UsedRange includes any cells the user has used even for formatting even if does not have any data.

If you want to read only specific range, then you can specify the range explicitly in the function in the 3rd parameter
by nageswaragunupudi
Fri Aug 21, 2020 6:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetExcelRange wrong return
Replies: 4
Views: 823

Re: ¿ Se puede saber el rango de un archivo Excel ?

Waldemar, Si ya tienes tu objeto de Excel, puedes usar estar instrucciones de Excel: nFils := oXls:oSheet:UsedRange:Rows:Count() //<--- No de Filas o registros nCols := oXls:oSheet:UsedRange:Columns:Count() //<--- No de Columas Yo lo utilizo, usando la clase TExcelScrip() ...
by wyerco613
Tue Jul 30, 2019 10:48 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿ Se puede saber el rango de un archivo Excel ?
Replies: 8
Views: 1093

Re: ¿ Se puede saber el rango de un archivo Excel ?

Waldemar, Si ya tienes tu objeto de Excel, puedes usar estar instrucciones de Excel: nFils := oXls:oSheet:UsedRange:Rows:Count() //<--- No de Filas o registros nCols := oXls:oSheet:UsedRange:Columns:Count() //<--- No de Columas Yo lo utilizo, usando la clase TExcelScrip() ...
by csincuir
Mon Jul 29, 2019 3:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿ Se puede saber el rango de un archivo Excel ?
Replies: 8
Views: 1093

Re: Import and Export to Excel

... Procedure Type Value ========================== TOLEAUTO:VALUE Local 1: U Local 2: C "Excel.Application:WORKBOOKS:OPEN:ACTIVESHEET:USEDRANGE" TEST Local 1: O Class: TOLEAUTO Local 2: L .F. Local 3: U Local 4: U Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX DataBases in ...
by ryugarai27
Sat Apr 27, 2019 4:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import and Export to Excel
Replies: 32
Views: 18230

Re: Import and Export to Excel

... from start: 0 hours 0 mins 39 secs Error occurred at: 04/23/19, 10:30:11 Error description: Error Excel.Application:WORKBOOKS:OPEN:ACTIVESHEET:USEDRANGE/14 E_OUTOFMEMORY: VALUE Args: Stack Calls =========== Called from: => TOLEAUTO:VALUE( 0 ) Called from: excelrange2.prg => TEST( 12 ) ...
by ryugarai27
Tue Apr 23, 2019 2:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import and Export to Excel
Replies: 32
Views: 18230

GetExcelRange function

... that GetExcelRange function works with this parameters ( cBook, cSheet, acRange, lOpened ) function defaults to ActiveWorkBook, ActiveSheet and UsedRange, if the corresponding parameters are not specified. I Have a lot of excel files (cBook) and inside there are 1 or n sheets (cSheet), is there ...
by damianodec
Fri Aug 31, 2018 7:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetExcelRange function
Replies: 2
Views: 685

Re: Cómo saber Fila y Columna final en excel?

Noe:

Muchas gracias, parece que las líneas

nRows := oHoja:UsedRange:Rows:Count()
nCols := oHoja:UsedRange:Columns:Count()

Son las que me sacarán del problema.

Saludos
by Armando
Thu Apr 12, 2018 4:45 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo saber Fila y Columna final en excel?
Replies: 2
Views: 517

Formato de numeros con tOleAuto, no lo asepta

... columnas de la hoja que estoy creando, al final para dar formato a los campos numericos doy: oSheet:Range("A1:H"+Alltrim(Str(oSheet:UsedRange:Rows:Count()))):NumberFormat:="###,##0.00" y las cifras me la pone: -4615952,98 cuendo es -4,615,952.98 4219371,98 4.219,371.98 ...
by noe aburto
Thu Oct 19, 2017 5:06 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Formato de numeros con tOleAuto, no lo asepta
Replies: 3
Views: 545

Re: Problem with GetExcelRange()

... oExcel := ExcelObj() oBook := oExcel:WorkBooks:Open( cFile ) ? oBook:FullName TRY oSheet := oBook:ActiveSheet oRange := oSheet:UsedRange CATCH END Regards Maurizio http://www.nipeservice.com
by Maurizio
Thu Feb 05, 2015 3:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with GetExcelRange()
Replies: 3
Views: 621

Re: Reading data from an excel-file

... { nTop, nLeft, nBottom, nRight } or name of a Range (eg. "Sales") or can be nil/omitted. If nil or ommitted, the function accesses the UsedRange. 2nd Optional Parameter: Sheet Name: If provided, attempts to access the range from the specified page. If nil/omitted then uses the ActiveSheet. ...
by nageswaragunupudi
Fri Jan 16, 2015 1:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Reading data from an excel-file
Replies: 7
Views: 3917

tipo de dato indefinido al leer planilla EXCEL

... oBook := oExcel:Workbooks:Open(cFile) oHoja := oExcel:Get( "ActiveSheet" ) nTotRowCount:= oHoja:UsedRange:Rows:Count() USE C:\VENTAS NEW EXCLUSIVE FOR Q=2 TO nTotRowCount cNombre:=oHoja:Cells( Q, 1 ):Value nTotal:=oHoja:Cells( Q, 3 ):Value ? TYPE("cNombre") ...
by lafug
Mon Apr 21, 2014 4:37 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: tipo de dato indefinido al leer planilla EXCEL
Replies: 1
Views: 434

tipo de dato undefine al leer una planilla excel

... oBook := oExcel:Workbooks:Open(cFile) oHoja := oExcel:Get( "ActiveSheet" ) nTotRowCount:= oHoja:UsedRange:Rows:Count() USE C:\VENTAS NEW EXCLUSIVE FOR Q=2 TO nTotRowCount cNombre:=oHoja:Cells( Q, 1 ):Value nTotal:=oHoja:Cells( Q, 3 ):Value ? TYPE("cNombre") ...
by lafug
Mon Apr 21, 2014 4:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tipo de dato undefine al leer una planilla excel
Replies: 3
Views: 805
Next

Return to advanced search