is it possible to convert this macro to excel2007 .?![]()
Sub totals() Dim cn As Object, rs As Object Set cn = CreateObject("ADODB.Connection") cn.Open _ "Driver={Microsoft Excel Driver (*.xls)};Dbq=" & _ ThisWorkbook.FullName Set rs = cn.Execute( _ "select distinct isim, sum(başvuru), sum(başarı) " & _ "from [Sayfa1$] " & _ "group by isim") Sheets("zeki").[a2].CopyFromRecordset rs rs.Close cn.Close Set rs = Nothing Set cn = Nothing Sheets("zeki").Activate End Sub
Bookmarks