[RESOLVED] Copy from one workbook to a open workbook
Hi, I know way to little of VBA, i need some help in copying values from one workbook to another workbook.... these is the problem.... I have book1.xls with some data, and book2.xlsm where i do the calculation.
I want to search for a specific string values in a specific column (lets say "D") from rows 3 to the last filled row. if the value is true..... then copy the row in a sheet name "configuration" in the next blank row in book2.xlm.
I'm sending a sample where i'm testing the formulas to see how far i can get. but i feel stuck at the moment.
Tanks for your reply Seenu, but that will not solve my problem, i had to find a way to solve it.
this code is working for my, just wanted to posed a final code
Sub Conf()
Dim i As Integer
Dim Source As Workbook
Dim LastRow As Long
Dim OriginalWorkBook As Workbook
Set OriginalWorkBook = ThisWorkbook
Const MyDir As String = "C:\Users\Shadow\Desktop\Frontera\Pedido de Madera\"
Set Source = Workbooks.Open(MyDir & "configuraciones_codigo_2.xlsx")
Application.ScreenUpdating = False
LastRow = Source.Worksheets("codigo").Range("b" & Rows.Count).End(xlUp).Row
For i = 3 To LastRow
If Source.Worksheets("codigo").Cells(i, 3) = "La Frontera Pallets" Then