r den her kode, og den har kørt fint i 2010, nu har vi skiftet til nye 365 og så kommer den en fejl der hedder: (Complie error: Can´t find project or library) nogen der ved hvad det er jeg mangler nu??? den hopper til vbdatetime
Sub Update_Dato()
Tast.TextBox1.Value = FormatDateTime(Now, vbdatetime)
Tast.TextBox1.Value = Format(Tast.TextBox1.Value, "dd-mmm-yyyy")
Tast.TextBox2.Value = FormatDateTime(Now, vbdatetime)
Tast.TextBox2.Value = Format(Tast.TextBox2.Value, "ww;21") ' Her vises uge nummer
Tast.TextBox3.Value = FormatDateTime(Now, vbdatetime)
Tast.TextBox3.Value = Format(Tast.TextBox1.Value, "dd-mmm-yyyy") ' Her er datoen i cellerne sat til Engelsk format
Tast.UGEDAG.Value = FormatDateTime(Now, vbdatetime)
Tast.UGEDAG.Value = Format(Tast.UGEDAG.Value, "Dddd")
Tast.Måend.Value = FormatDateTime(Now, vbdatetime)
Tast.Måend.Value = Format(Tast.Måend.Value, "mm")
Tast.År.Value = FormatDateTime(Now, vbdatetime)
Tast.År.Value = Format(Tast.År.Value, "yyyy")
Tast.UGEDAG.Value = Format(Tast.UGEDAG.Value, "ddd") '<---- UGEDAG = dddd
Worksheets("Registion").Range("A1", Worksheets("Registion").Range("A1").End(xlToRight).End(xlDown)).Sort Key1:=Worksheets("Registion").Range("A1"), Order1:=xlAscending, Header:=xlYes
nummer = Worksheets("Registion").Range("A1").End(xlDown).Value
Tast.TBLB.Value = nummer + 1
Tast.ListBox1.RowSource = "Slåop!" & Range("Navne_Liste").Address:
Tast.starter = True
End Sub