excel - Find function - error 91 -


i use code find value in range. works fine if searched value of single digit or text. "error 91 object variable or block not set" whenever searched value of 2 digits. tell wrong? make things clear have uploaded file here: https://www.dropbox.com/s/5nkja2xumcyap73/find%20error%2091%20for%20double%20digits.xlsm appreciated!

dim search_range range dim search_start range dim search_value range  set search_range = shdaten.range("e1:t1") set search_start = shdaten.range("e1")  set search_value = search_range.find(what:=shschl.range("d25").value, after:=search_start, _         lookin:=xlvalues, lookat:=xlpart, searchorder:=xlbyrows, _         searchdirection:=xlnext, matchcase:=false, searchformat:=false) 

error found! cells contain searched value must formated "text" (by right click on cells/range , go "format cell" , select "text").


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -