LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Junior Member
 
Posts: 9
Smile

Thank you Bernie Deitrick for helping me solve my excel VBA question and give me some ideal. Thanks again.. God bless you

I’m try to automated 3 excel file that can pull some data by using Find method. The coding succeeds. Below is the coding:-

Private Sub CommandButton2_Click()

Dim MyProduct As Range

For i = 5 To 100
Product = Cells(i, 6).Value 'Range("F8") = Cells(8, 6)
Set MyProduct = Workbooks("January KLM NPI ReviewIR.xls").Worksheets("Sheet1").Columns("E").F ind(what:=Product, LookAt:=xlWhole)
If Not MyProduct Is Nothing Then Cells(i, 8).Value = MyProduct.Offset(0, 4).Value
If Not MyProduct Is Nothing Then Cells(i, 17).Value = MyProduct.Offset(0, 6).Value
Next i

End Sub



This thread SOLVE
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please post this thread a correct full method, method about Nast Runsome New Users to Excel 8 February 25th 08 03:29 PM
Object property/method problem Ayo Excel Discussion (Misc queries) 6 August 30th 07 10:18 PM
How do you find the method of selected points? method of selected points Setting up and Configuration of Excel 0 November 2nd 05 03:02 PM
How to find method to cut steel coil by using excel. vn Excel Worksheet Functions 1 May 31st 05 03:19 AM
problem with the command - method "UpdateFromFile" Arnost Katolicky Excel Worksheet Functions 1 May 8th 05 01:16 PM


All times are GMT +1. The time now is 07:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"