Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Als dergelijke gelijke cellen op meerdere plekken andere eigenschappen nodig hebben is er in het ontwerp al iets fout.
InlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Offset(, 5)
UitlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Offset(, 6)
SessieDuur = CDate(UitlogTijd) - CDate(InlogTijd)
.Offset(, 7) = CDec(SessieDuur)
.Offset(, 7).NumberFormat = "[h]:mm:ss"
Format((TimeValue(b) - TimeValue(a)) - (TimeValue(a) > TimeValue(b) * 24), "hh:mm:ss")
Dim LogTijd As String
Dim InlogTijd As String
Dim UitlogTijd As String
Dim SessieDuur As String
LogTijd = Format(Now, "dd-mm-yyyy hh:mm:ss")
With Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp)
.Cells(, 7) = LogTijd
InlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 6)
UitlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 7)
SessieDuur = CDate(UitlogTijd) - CDate(InlogTijd)
.Cells(, 8) = CDec(SessieDuur)
.Cells(, 8).NumberFormat = "[h]:mm:ss"
End With
Dim LogTijd As String
Dim InlogTijd As Date
Dim UitlogTijd As Date
Dim SessieDuur As Double
LogTijd = Format(Now, "dd-mm-yyyy hh:mm:ss")
With Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp)
.Cells(, 7) = LogTijd
InlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 6)
UitlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 7)
SessieDuur = UitlogTijd - InlogTijd
.Cells(, 8) = SessieDuur
.Cells(, 8).NumberFormat = "[hh]:mm:ss"
End With
Dim LogTijd As String
Dim InlogTijd As Date
Dim UitlogTijd As Date
Dim SessieDuur As String 'DEZE VARIABELE KAN IN DEZE OPZET VOLGENS MIJ VERWIJDERD WORDEN
LogTijd = Format(Now, "dd-mm-yyyy hh:mm:ss")
With Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp)
.Cells(, 7) = LogTijd
InlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 6)
UitlogTijd = Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp).Cells(, 7)
SessieDuur = UitlogTijd - InlogTijd
.Cells(, 8) = CDec(SessieDuur)
.Cells(, 8).NumberFormat = "[hh]:mm:ss"
End With
Sub M_snb()
With Sheets("LogFile").Cells(Rows.Count, 1).End(xlUp)
.offset(, 6).resize(,2) = array(Now,Now - .offset(, 5))
.offset(, 7).NumberFormat = "[hh]:mm:ss"
End With
End Sub
Hoi,
Als je 'Option Explicit' weghaalt, of je zet er een apostrof voor, of je haalt het vinkje weg in de Opties → Editor hoef je de variabelen niet te declareren.
Een nadeel, je keuzelijstjes van de objectleden zijn verdwenen.
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.