Bonjour,
J'aimerai trouver dans une ligne la date présente dans un textbox, mais je pense que je dois avoir un souci de syntaxe.
Pour rechercher dans une colonne je n'ai pas de souci, mais dans une ligne ça pose problème !
voici mon code :
Sub test()
Dim col , lig as long
With Sheets("Planning gestion matériel")
lig = .Columns(1).Find(ComboBox2.Value, LookIn:=xlValues, lookat:=xlWhole).Row
MsgBox lig
col = .Rows(4).Find(TextBox3.Value, LookIn:=xlValues, lookat:=xlWhole)
MsgBox col
End With
end sub
L'erreur 91 variable objet ou variable de bloc With non définie apparait à la ligne col = .Rows(4).Find(TextBox3.Value, LookIn:=xlValues, lookat:=xlWhole)
Si jamais quelqu'un trouve le souci je suis preneuse!
Merci !