Private Sub CommandButton1_Click()
[A:C] = Empty
Dim ds, f, dc, a
Set ds = CreateObject("Scripting.FileSystemObject")
Set f = ds.GetFolder(ThisWorkbook.Path & "\Dosyalar\")
Set dc = f.Files
For Each dosya In dc
c = c + 1
Cells(c, 1) = dosya.Name
Cells(c, 2) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R3C3")
Cells(c, 3) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R4C4")
Cells(c, 4) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R9C8")
Cells(c, 1).Select
Next
End Sub
bu kodda başlangıç ( çekilen veriyi a1 hücresinden başlayarak yazıyor...
a1 den değilde başka bir yerden ( a5 yada c4 gibi bir hücreden) başlatarak nasıl yazdırırız ....
saygılar
[A:C] = Empty
Dim ds, f, dc, a
Set ds = CreateObject("Scripting.FileSystemObject")
Set f = ds.GetFolder(ThisWorkbook.Path & "\Dosyalar\")
Set dc = f.Files
For Each dosya In dc
c = c + 1
Cells(c, 1) = dosya.Name
Cells(c, 2) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R3C3")
Cells(c, 3) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R4C4")
Cells(c, 4) = ExecuteExcel4Macro("'" & ThisWorkbook.Path & "\Dosyalar\[" & dosya.Name & "]sayfa1'!R9C8")
Cells(c, 1).Select
Next
End Sub
bu kodda başlangıç ( çekilen veriyi a1 hücresinden başlayarak yazıyor...
a1 den değilde başka bir yerden ( a5 yada c4 gibi bir hücreden) başlatarak nasıl yazdırırız ....
saygılar
