Excel openoffice vba



  • Excel openoffice vba
    di Beppe837 (utente non iscritto) data: 23/03/2009

    Ho questo codice che dovrei modificare in quanto se apro il file excel con openoffice(novell),all'esecuzione delle macro mi da errore. mi sapreste dire cosa c'è di sbagliato?ad openoffice forse non va bene qualche parte di codice che invece va bene con excel di office 2003? spero in un vostro aiuto
     
    Private Function ReturnTotale(NomeRangTot As String, NomeColonnaRng As String) As Currency
    
        On Error Resume Next
        Dim tmpRange As Range
        Dim tmpRow As Range
        Dim iTot As Currency
        Dim ColNum As Integer
        Dim RowNum As Integer
        
        Set tmpRange = Range(NomeRangTot)
        iTot = 0
        ColNum = Range(NomeColonnaRng).Column
        RowNum = tmpRange.Rows.Count
        
        For Each tmpRow In tmpRange.Rows
    
            
            iTot = iTot + IIf(IsNumeric(tmpRow.Cells(1, ColNum)), tmpRow.Cells(1, ColNum), 0)    
        
        Next
        
        ReturnTotale = iTot
        Set tmpRange = Nothing
        Set tmpRow = Nothing
        
    End Function
    
    



  • di Ricky53 data: 23/03/2009

    Ciao,
    che errore ottieni.

    ciao da ricky53



  • di Beppe837 (utente non iscritto) data: 24/03/2009

    Non gira proprio...



  • di Enzo (utente non iscritto) data: 24/03/2009

    Scusate l'intromissione ma questa istruzione dovrebbe creare una funzione richiamata dall'utente?
    se e' cosi' neanche excel la vede