Search found 155 matches: activesheet

Return to advanced search

Re: Fivewin and ADO

... open on the computer or if already used, uses the workbook 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 ...
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

... crash. This program demonstrates 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

... ) oExcel:Visible := .T. // 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: ...
by pedroluis
Sun Feb 05, 2023 2:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error toleauto
Replies: 2
Views: 309

MODIFICAR UN CUADRO DE TEXTO DE UN EXCEL - SOLUCIONADO

Saludos necesito poder editar un cuadro de texto de una hoja de excel esto seria lo que se necesita hacer ActiveSheet.Shapes.Range(Array("TextBox 1")).Select Selection.ShapeRange(1).TextFrame2.TextRange.Characters.Text = _ "DECLARACION JURADA" & Chr(13) ...
by CARLOS ATUNCAR
Fri May 20, 2022 9:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: MODIFICAR UN CUADRO DE TEXTO DE UN EXCEL - SOLUCIONADO
Replies: 0
Views: 193

Re: Insertar Hoja en libro Excel

... oExcel:sheets:Add() o también puedes después del oExcel:sheets:Add() moverla a la ultima posición: oExcel:sheets:Add() oHoja := oExcel:ActiveSheet() oHoja:Move(,oExcel:Workbooks:Sheets:Count()) //Ojo debe ser el segundo parámetro de Move
by Sebastián Almirón
Thu Mar 31, 2022 8:50 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar Hoja en libro Excel
Replies: 2
Views: 204

Insertar Hoja en libro Excel

... Endif oExcel := TOleAuto():New("Excel.Application") oExcel:WorkBooks:Add() oExcel:sheets("Hoja3"):Select() oHoja:=oExcel:ActiveSheet() oExcel:sheets:Add() Saludos Juan Jose
by juanjogascem
Thu Mar 31, 2022 6:45 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Insertar Hoja en libro Excel
Replies: 2
Views: 204

Error en excel

... TOleAuto():New("Excel.Application") objExcel:Visible := .T. objExcel:Workbooks:Add() objExcel:Sheets("Hoja1") oHoja:=objExcel:ActiveSheet() oHoja:Shapes:AddPicture("C:\Prueba\logo.jpg",.t.,.t.,10,5,88,80) objExcel:Cells(1, 5):Font:bold := .T. objExcel:Cells(1, 5):Font:Size ...
by servicomver
Thu Mar 18, 2021 6:39 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error en excel
Replies: 0
Views: 336

Re: EXCEL export

... FONT 3 Time from start: 0 hours 0 mins 3 secs Error occurred at: 10.03.2021, 18:32:34 Error description: Error Excel.Application:WORKBOOKS:ADD:ACTIVESHEET/3 DISP_E_MEMBERNOTFOUND: RANGE Args: [ 1] = O Excel.Application:WORKBOOKS:ADD:ACTIVESHEET:RANGE:CELLS [ 2] = N 6 I have uploaded my source ...
by Otto
Wed Mar 10, 2021 5:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: EXCEL export
Replies: 5
Views: 735

Re: Strange issue: Excel

Maybe try making Excel visible to see if it has problems.

// Create the object
oExcel := ExcelObj( )

oExcel:Visible := .t.

oExcel:WorkBooks:Add( )
oAS := oExcel:ActiveSheet( )

oAS:Cells:Font:Name := "Arial"
oAS:Cells:Font:Size := 12
by Gale FORd
Mon Jan 04, 2021 8:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange issue: Excel
Replies: 6
Views: 1007

Re: Import and Export to Excel

... use ================ 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 ...
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

... Pack 1 Time 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 => ...
by ryugarai27
Tue Apr 23, 2019 2:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import and Export to Excel
Replies: 32
Views: 18230

Re: Import Chinese Characters from XLS

... Excel. [" + Ole2TxtError()+ "]" ) RETURN (.T.) END END // Open XLS... TRY oExcel:WorkBooks:Open( cDrive + cSource ) oSheet = oExcel:ActiveSheet CATCH Alert( "Error Reading XLS: " + cDrive + cSource + " - [" + Ole2TxtError()+ "]" ) RETURN (.F.) END TRY ...
by cdmmaui
Thu Feb 21, 2019 4:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Import Chinese Characters from XLS
Replies: 4
Views: 949

How To Read From One Excel File And Write To Another

... "WK2.xlsx" oExcel:WorkBooks:Open( "&subdirc3" ) cNamex = "S1" oExcel:Sheets( cNamex ):Select() oSheet2 = oExcel:ActiveSheet subdirc2 = "WK1.xlsx" oExcel:WorkBooks:Open( "&subdirc2" ) cName = "S1" oExcel:Sheets( cName ):Select() ...
by acwoo1
Tue Jan 01, 2019 2:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How To Read From One Excel File And Write To Another
Replies: 6
Views: 1647

Re: Select an open excel-sheet

... and than select the excell-sheet (in case if more than 1 sheet is open) that the program have to modify/use. Thanks Intenta asi... oHoja := oExcel:ActiveSheet() // SINO ESPECIFICAS QUE HOJA, TOMARA POR DEFECTO LA HOJA1 oExAngu:Sheets("COLUMNAS"):Select() // SELECCIONO Y ME CAMBIO A LA ...
by joseluisysturiz
Tue Oct 16, 2018 5:23 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Select an open excel-sheet
Replies: 13
Views: 3189

GetExcelRange function

hi, I know 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), ...
by damianodec
Fri Aug 31, 2018 7:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetExcelRange function
Replies: 2
Views: 685
Next

Return to advanced search