Öncelikle iyi akşamlar diliyorum. Hocam henüz çok acemiyim makrolar konusunda. Acaba örnek çalışmaya uyarlamanız mümkün mü bu çalışmayı. Saygılar sunuyorum.
...Objecs'in son sürümünü seçiniz.
Sub ADOB_ILE_AKTAR()
'Tolls/Referans/Microsoft Aktives Data Objecs x.x Library
Dim connection As New ADODB.connection
Dim DosyaAdı As String
Dim query As String
Dim rs As New ADODB.Recordset...
...teşekkürler,
iyi çalışmalar.
Public Sub verticalUpdate(ByVal Alan As String, ByVal ie As Variant, item As Variant, deger As String)
Dim RS As ADODB.Recordset
Dim veri As Variant
Dim SQL As String
On Error GoTo ErrorHandler
' - ' - ' - ' - ' - ' - ' - ' - ' - ' - ' - ' - ' - ' - '...
...My_File As Variant, My_Recordset As Object
File_Path = "\\Network_Path\Desktop\Book1.xlsx"
Set My_Connection = CreateObject("AdoDb.Connection")
Select Case Val(Application.Version)
Case Is < 12
My_Connection.Open "Provider=Microsoft.Jet.OleDb.4.0;Data...
...sağlayan revize kod aşağıdadır;
Option Explicit
'
Sub Test()
' Haluk - 29/09/2023
' sa4truss@gmail.com
'
Dim objADO As ADODB.Connection
Dim strFile As String, strSQL As String
Dim objRS As ADODB.Recordset
Dim arrBelgeNo As Variant
Dim i As Integer, j As Integer...
...teşekkürler, iyi akşamlar.
Sub sorguu()
Dim myPath As String
myPath = "G:\Drive\Egitim\Dosyalar"
Set con = VBA.CreateObject("adodb.Connection")
yol = myPath & "\Satış.xlsx"
con.Open "provider=microsoft.ace.oledb.12.0;data source=" & _
yol & ";extended properties=""Excel 12.0;hdr=yes"""...
...As Object
sorgu = "Select * From [Data$] Where Cdbl(CDate([Tarih])) = " & tarih & "And Cdbl(CDate([saat])) > " & saat
Set RS = CreateObject("ADODB.Recordset")
RS.CursorType = 1
RS.Open sorgu, Con
a = RS.RecordCount
sorguTarih = a
End Function...
...a = sorguTarih(tarih)
MsgBox a
End Sub
'
Sub Baglan()
Dim yol As String
Set Con = VBA.CreateObject("adodb.Connection")
yol = ThisWorkbook.FullName
Con.Open "provider=microsoft.ace.oledb.12.0;data source=" & _
yol & ";extended properties=""Excel...
Mantık olarak; JPEG, BAT, DOCX.... herhangi bir dosyayı ADODB ile "binary" çevirip, MDB dosyasındaki bir tablodaki alana yazılabilir.
Deneyip, görmek lazım...
.
...tarih = CDate(Sayfa1.Range("A2"))
a = sorguTarih(tarih)
MsgBox a
End Sub
Sub Baglan()
Dim yol As String
Set Con = VBA.CreateObject("adodb.Connection")
yol = ThisWorkbook.FullName
Con.Open "provider=microsoft.ace.oledb.12.0;data source=" & _
yol & ";extended properties=""Excel...
...As Object, My_Recordset As Object, My_Query As String
Application.ScreenUpdating = False
Set My_Connection = CreateObject("AdoDB.Connection")
Set My_Recordset = CreateObject("AdoDB.Recordset")
Set S1 = Sheets("Sayfa1")
My_Connection.Open...
Sizlere daha iyi bir deneyim sunabilmek icin sitemizde çerez konumlandırmaktayız, web sitemizi kullanmaya devam ettiğinizde çerezler ile toplanan kişisel verileriniz Veri Politikamız / Bilgilendirmelerimizde belirtilen amaçlar ve yöntemlerle mevzuatına uygun olarak kullanılacaktır.