Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I run the following code I am getting the error 1004
"Method 'Range' of object '_Global' failed" Dim rng as Range with Worksheets("Sheet1").Columns(1) set rng = .find(what:=Userform1.Textbox1.Text, _ After:=Range(A65536), _ LookIn:=xlFormulas, _ LookAt:=xlWhole, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False) End with If not rng is Nothing then With Userform1 .Textbox2.Text = rng.offset(0,1).Value .Textbox3.Text = rng.Offset(0,2).Value ' and so forth End with Else msgbox Userform1.Textbox1.Text & _ " was not found" End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Alt Code Problem | Excel Discussion (Misc queries) | |||
Problem with code | Excel Discussion (Misc queries) | |||
VB Code Problem | Excel Discussion (Misc queries) | |||
problem with code | Excel Programming | |||
Code Problem ! | Excel Programming |