Professional Documents
Culture Documents
ConenEction String
ConenEction String
'This was set up using Microsoft ActiveX Data Components version 2.8
With wsSheet
Set rnStart = .Range("A1")
End With
With cnt
.CursorLocation = adUseClient
.Open stADO
.CommandTimeout = 0
Set rst = .Execute(stSQL)
End With
'Cleaning up.
rst.Close
cnt.Close
Set rst = Nothing
Set cnt = Nothing
End Sub