Ik heb de volgende macro gemaakt. In Excel 2003 werkt het wel maar in Excel 2000 krijg ik de volgende fout:
Fout 91 tijdens uitvoering:
Object variabele of blokvariabele with is niet ingesteld
Wat doe ik niet goed?
Sub Controleren()
Dim ZoekWaarde As String
ZoekWaarde = ActiveCell
Selection.Copy
Cells.Find(What:=ZoekWaarde, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
end sub
Fout 91 tijdens uitvoering:
Object variabele of blokvariabele with is niet ingesteld
Wat doe ik niet goed?
Sub Controleren()
Dim ZoekWaarde As String
ZoekWaarde = ActiveCell
Selection.Copy
Cells.Find(What:=ZoekWaarde, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
end sub