Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Object Required
Ikeep getting an object required error on the rngDieLook line. Can anyone
help me. Private Sub CommandButton1_Click() strTarget = UserForm1.TextBox1.Value rngTargetCell = Worksheets(2).Range("A:A").Find(strTarget).Address rngDieLook = Range(rngTargetCell.Offset(1, 0), rngTargetCell.Offset(4, 0)).Find("Die").Address MsgBox rngDieLook |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Object Required
Do you want rngTargetCell to be a range or a string variable?
-- Gary's Student "aftamath" wrote: Ikeep getting an object required error on the rngDieLook line. Can anyone help me. Private Sub CommandButton1_Click() strTarget = UserForm1.TextBox1.Value rngTargetCell = Worksheets(2).Range("A:A").Find(strTarget).Address rngDieLook = Range(rngTargetCell.Offset(1, 0), rngTargetCell.Offset(4, 0)).Find("Die").Address MsgBox rngDieLook |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Object Required
Yes, a range object. Same with rngDieLook.
"Gary''s Student" wrote: Do you want rngTargetCell to be a range or a string variable? -- Gary's Student "aftamath" wrote: Ikeep getting an object required error on the rngDieLook line. Can anyone help me. Private Sub CommandButton1_Click() strTarget = UserForm1.TextBox1.Value rngTargetCell = Worksheets(2).Range("A:A").Find(strTarget).Address rngDieLook = Range(rngTargetCell.Offset(1, 0), rngTargetCell.Offset(4, 0)).Find("Die").Address MsgBox rngDieLook |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannor strech embedded word object | Excel Discussion (Misc queries) | |||
Object | Setting up and Configuration of Excel | |||
SET statement tutorial | Excel Discussion (Misc queries) | |||
Creating a Powerpoint object (in XP onwards) with an ActiveWindow | Excel Discussion (Misc queries) | |||
VBA: Where to find Excel Object model? | Excel Discussion (Misc queries) |