Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

User defined function recalc

[es] :: Office :: Excel :: User defined function recalc

[ Pregleda: 1462 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Dexxxl




Profil

icon User defined function recalc19.07.2017. u 15:42 - pre 82 meseci
Imam User Defined funkciju

Code:

Public Function Svega(p As Range) As Double

Dim tabla As Worksheet
Dim a As Integer
Dim b As Integer

a = p.Row
b = p.Column

For Each tabla In ThisWorkbook.Sheets
    If tabla.Name <> "Ukupno" Then
        svega = svega + tabla.Cells(a, b)
    End If
Next tabla
End Function


Kad je prvi put postavim sve radi OK, medjutim ako nesto menjam ili dodam jos neki sheet ne
preracunava automatski.
U options imam postavljeno calculation na automatic.
Kad prebacim na manual i pozovem radi OK.
Sta da uradim da preracunava automatski?
 
Odgovor na temu

Brodoplovac
Beograd

Član broj: 171299
Poruke: 838
..252.195.adsl.dyn.beotel.net.



+166 Profil

icon Re: User defined function recalc19.07.2017. u 20:19 - pre 82 meseci
Dodaj "Application.Volatile" na vrh procedure.

http://www.excel-easy.com/vba/examples/volatile-functions.html
 
Odgovor na temu

Dexxxl




Profil

icon Re: User defined function recalc20.07.2017. u 09:53 - pre 82 meseci
Fercera
Hvala puno
 
Odgovor na temu

[es] :: Office :: Excel :: User defined function recalc

[ Pregleda: 1462 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.