vert.zoeken met een named range en dan de named range langer maken

littlepete

Well-known Member
Joined
Mar 26, 2015
Messages
503
Office Version
  1. 365
Platform
  1. Windows
hallo ;)

via een listbox krijg ik na het tikken van een naam, een lijst met namen die de getikte string bevatten.
deze waarde wordt dan in een range, "invulnaam" ingevuld.
nu wil ik voor de overleden personen daar een kruisje achter zetten, gebaseerd op de kolom av waar een
"x" staat indien overleden...
de functie vert.zoeken lukt mij niet :

Code:
Private Sub ListBox1_Click()Dim zoekpersoon As String
Application.ScreenUpdating = False
zoekpersoon = UCase(ListBox1.Value)
' ga naar pagina invulfiche
    ActiveWindow.ScrollRow = Range("personen").Row
    if vert.zoeken(invulnaam;lijst!d2:av255;45;"x") = true then invulnaam = invulnaam + "+"
    Range("invulnaam").Value = zoekpersoon
    Application.ScreenUpdating = True
    fotokiezen
End Sub

tussen haakjes al dat gedoe met vba in t nederlands, formules in t engels (of omgekeerd); komma's of kommapunten... allemaal verschrikkelijk verwarrend :( ...
zoals steeds hopend op een snel antwoord... waarvoor ik u nu al dank :)
peter
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,215,519
Messages
6,125,294
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top