Der bliver investeret massivt i AI. Teknologien er mere tilgængelig end nogensinde, og ambitionerne er høje. Alligevel oplever mange virksomheder, at resultaterne udebliver.
Kopier alt nedenfor ind i et model. Nu vil "Sub DisableControls()" gøre klip inaktiv, "Sub EnableControls()" vil gøre den aktiv igen. Du skal muligvis udskifte DisableControl 21 med 20 - afhængig af version. ***************** Option Explicit Sub DisableControls() 'Disable Cut DisableControl 21 Application.OnKey "^" & Chr(88), "" Application.OnKey "^" & Chr(120), "" End Sub Function DisableControl(ID As Long) Dim CB As CommandBar Dim c As CommandBarControl For Each CB In Application.CommandBars Set c = CB.FindControl(ID:=ID, recursive:=True) On Error Resume Next c.Enabled = False Err.Clear On Error GoTo 0 Next End Function Sub EnableControls() 'Enable Cut EnableControl 21 Application.OnKey "^" & Chr(88), "" Application.OnKey "^" & Chr(120), ""
End Sub Function EnableControl(ID As Long) Dim CB As CommandBar Dim c As CommandBarControl For Each CB In Application.CommandBars Set c = CB.FindControl(ID:=ID, recursive:=True) On Error Resume Next c.Enabled = True Err.Clear On Error GoTo 0 Next End Function
og så er der sneget sig en fejl ind : Sub EnableControls() 'Enable Cut EnableControl 21 Application.OnKey "^" & Chr(88), "" Application.OnKey "^" & Chr(120), ""
End Sub ændres til Sub EnableControls() 'Enable Cut EnableControl 21 Application.OnKey "^" & Chr(88) Application.OnKey "^" & Chr(120) End Sub
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.