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.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
Private Sub Worksheet_BeforeRightClick(ByVal Target As Excel.Range, Cancel As Boolean)
Cancel = True
[COLOR="#FF0000"] Static BeforeRightClickIsRunning As Boolean
If BeforeRightClickIsRunning Then Exit Sub
BeforeRightClickIsRunning = True[/COLOR]
If Intersect(ActiveCell, Range("C2:H2")) Is Nothing Then Exit Sub
If ActiveCell.Offset(1, 0) = Empty Then ActiveCell.Offset(1, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(1, 0).ClearContents
If ActiveCell.Offset(2, 0) = Empty Then ActiveCell.Offset(2, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(2, 0).ClearContents
If ActiveCell.Offset(3, 0) = Empty Then ActiveCell.Offset(3, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(3, 0).ClearContents
If ActiveCell.Offset(4, 0) = Empty Then ActiveCell.Offset(4, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(4, 0).ClearContents
If ActiveCell.Offset(5, 0) = Empty Then ActiveCell.Offset(5, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(5, 0).ClearContents
If ActiveCell.Offset(6, 0) = Empty Then ActiveCell.Offset(6, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(6, 0).ClearContents
If ActiveCell.Offset(7, 0) = Empty Then ActiveCell.Offset(7, 0) = 1
For van = 1 To 20000000: Next: ActiveCell.Offset(7, 0).ClearContents
ActiveCell.Offset(8, 0) = 1
[COLOR="#FF0000"]BeforeRightClickIsRunning = False[/COLOR]
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Excel.Range, Cancel As Boolean
[COLOR="#FF0000"]Application.EnableEvents = False[/COLOR]
uw macro code
[COLOR="#FF0000"]Application.EnableEvents = True[/COLOR]
End sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Excel.Range, Cancel As Boolean)
If Intersect(Target, Range("C2:H2")) Is Nothing Then Exit Sub
on error resume next
application.enableevents=false
for each it in target.resize(,8).specialcells(4)
it.value=1
it.resize(2000).clearcontents
next
Cancel = True
application.enableevents=true
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.