Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "C01Tree", "c:\temp \C.xls" Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.

EventArgs) Han dles Me.Load Dim Dim Dim Dim Dim conn As New OleDbConnection() 'OleDbConnection connadd As New OleDbCommand 'OleDbCommand strsql As String strconn As String 'dbs sr As StreamReader = File.OpenText("c:\TestFile.txt")

strconn = "Provider=Microsoft.JET.OLEDB.4.0;data source= " & sr.ReadLine 'sr.Readline path strsql = "INSERT INTO drawing(Title,Version)" strsql &= "values('fgdfgfdgdfgdfgdfgdf','dfgdfgfdgdfgr')" With conn 'connect dbs If .State = ConnectionState.Open Then .Close() .ConnectionString = strconn .Open() End With End Sub

Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Cut Selection.Insert Shift:=xlDown

yyy = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column Norec = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row

Cells.Find(What:="Submersible", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate

You might also like