... programmer wants to make some additions to the excel sheeet before saving as PDF, he can do so by using bPrePdf codeblock, which is evaluated with oSheet as parameter. We can not comment on the runtime error without knowing anything about the DBF or the program code of DoShowDBF() Altenatively, ...
... pero para que funcione el filtro la información debe empezar en el renglón inmediato indicado en el filtro: Ejemplo // Renglón de los filtros oSheet:Range("A3:Z3"):Autofilter() La información del excel debe iniciar en el renglón 4: espero haberte ayudado, a mi me funciona muy bien. ...
This function creates a new Excel Book, exports to only sheet available, i.e., "Sheet1" and returns the Sheet object. You can use the oSheet object and do anything with it, including rename it : oSheet:Name := "SomeOtherName".
Ya encontré en el foro la solucion: //To "Lock" or "Unlock" a cell use: oSheet:Range("A1","A10"):Locked:=.f. //(or .t. to lock) //Then to protect the locked cells: oSheet:Protect( "12345") //To Unprotect the locked cells: ...
Con esto bloqueo solo la hoja completa oSheet:Protect( "123456" ) Que se puede hacer: ¿Des proteger las celdas que necesito ? o Indicar cuales están protegidas ?