Ho recentemente migrato a pclinuxos da Windows e sembra piacermi. L'unico problema che sto affrontando è che libreoffice, il pacchetto di fogli di calcolo predefinito non è compatibile con i macro di Excel. Di seguito è riportato il codice VBA che ho:Come faccio a rendere il codice vba compatibile con libre office
Option VBASupport
Sub DeleteToLeft()
Selection.SpecialCells(xlBlanks).Delete shift:=xlToLeft
End Sub
Function SinceLastWash()
Application.Volatile
WashCount = 0
WearCount = 0
CurrentRow = Application.ThisCell.Row
For i = 3 To 35
If Range(Cells(CurrentRow, i), Cells(CurrentRow, i)).Value = "a" Then
WearCount = WearCount + 1
End If
If Range(Cells(CurrentRow, i), Cells(CurrentRow, i)).Value = "q" Then
WashCount = WashCount + 1
WearCount = 0
End If
Next i
SinceLastWash = WearCount
End Function
Function testhis()
testhis = Application.ThisCell.Row
End Function
C'è un modo per convertire il codice per renderlo compatibile con LibreOffice o devo imparare un linguaggio del tutto nuovo come Python? Imparare Python non sarebbe un problema, ma non è una soluzione al mio problema perché ho molti file relativi al lavoro in Excel che hanno un sacco di codice VBA e non mi è possibile usare open office/libreoffice al lavoro ...
Voglio solo aggiungere che la funzione SinceLastWash fornisce il valore corretto in alcune celle in cui lo uso e in altri dà un errore, #NOME?
Grazie