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.
If target.address = "$A$1" then Sheets("Serie").Range("C17") = Sheets("Opties").Range("A71").value
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Sheets("Filter").Range("C4")
pic = Sheets("Filter").Range("C4")
Set Afbeelding = ActiveSheet.Pictures.Insert(pic)
With Afbeelding
.Top = Rows(5).Top
.Left = Columns(2).Left
.Height = Application.CentimetersToPoints(10)
.Width = Application.CentimetersToPoints(5)
End With
Set KeyCells = Sheets("Filter").Range("C4")
Application.EnableEvents = False
Sheets("Serie").Range("C17") = Sheets("Opties").Range("A71").Value
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Calculate()
Sheets("Serie").Range("C17") = Sheets("Opties").Range("A71").Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Sheets("Filter").Range("C4")
pic = Sheets("Filter").Range("C4")
Set Afbeelding = ActiveSheet.Pictures.Insert(pic)
With Afbeelding
.Top = Rows(5).Top
.Left = Columns(2).Left
.Height = Application.CentimetersToPoints(10)
.Width = Application.CentimetersToPoints(5)
End With
Application.EnableEvents = False
If Target.Address = "$C$4" Then Sheets("Serie").Range("C17") = Sheets("Opties").Range("A71").Value
Application.EnableEvents = True
End Sub
Yes... Dit werkt. weer super bedankt!Zet dit bij in de bladmodule van blad Filter.
Als er iets wijzigt in tabblad Filter (het resultaat van de formule in C4) gaat de code lopen.Code:Private Sub Worksheet_Calculate() Sheets("Serie").Range("C17") = Sheets("Opties").Range("A71").Value End Sub
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
If Target.Address(0, 0) = "F5" Then
Application.EnableEvents = False
pic = Sheets("Filter").Range("C4").Value
For Each sh In Shapes
tekst = tekst & "|" & sh.Name & "|"
Next sh
If InStr(tekst, "|plaatje|") Then Shapes("plaatje").Delete
Set Afbeelding = Pictures.Insert(pic)
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.