Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Find Method problem in Excel VBA....
I have a problem about using find method in Excel VBA.
Here is my program:- __________________________________________________ _______________ Private Sub CommandButton2_Click() Dim MyProduct As Range Product = Range("F8").Value Set MyProduct = ThisWorkbook.Sheets("Sheet2").Columns("E").Find(wh at:=Client, LookAt:=xlWhole) ActiveSheet.Cells(8, 8).Value = MyProduct.Columns("G").Value End Sub __________________________________________________ ___________________ how can I pull data at Columns(G) to Cells(8,8) the program I wrote ' ActiveSheet.Cells(8, 8).Value = MyClient.Columns("G").Value ' , give me error... Run-time error '91' Object variable or With block variable not set What does it mean? Please someone help me to solve this problem.... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Please post this thread a correct full method, method about | New Users to Excel | |||
Object property/method problem | Excel Discussion (Misc queries) | |||
How do you find the method of selected points? | Setting up and Configuration of Excel | |||
How to find method to cut steel coil by using excel. | Excel Worksheet Functions | |||
problem with the command - method "UpdateFromFile" | Excel Worksheet Functions |