Rodrigo fiz alguns testes e não consegui. Estou colocando meu código abaixo para você me orientar onde eu insiro exatamente esses comandos.
Private Sub CommandButton2_Click()
Dim connectionString As String
connectionString = ThisWorkbook.Path & "/Northwind.mdb"
Dim conn As ADODB.Connection
Dim rst As ADODB.Recordset
sql1 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "','" & cb_feed_tipo.Value & "', '" & Plan7.Cells(3, 1).Value & "', '" & Plan7.Cells(3, 2).Value & "','" & TextBox1.Value & "')"
sql2 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "','" & cb_feed_tipo.Value & "', '" & Plan7.Cells(4, 1).Value & "', '" & Plan7.Cells(4, 2).Value & "','" & TextBox1.Value & "')"
sql3 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(5, 1).Value & "', '" & Plan7.Cells(5, 2).Value & "','" & TextBox1.Value & "')"
sql4 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(6, 1).Value & "', '" & Plan7.Cells(6, 2).Value & "','" & TextBox1.Value & "')"
sql5 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(7, 1).Value & "', '" & Plan7.Cells(7, 2).Value & "','" & TextBox1.Value & "')"
sql6 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(8, 1).Value & "', '" & Plan7.Cells(8, 2).Value & "','" & TextBox1.Value & "')"
sql7 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(9, 1).Value & "', '" & Plan7.Cells(9, 2).Value & "','" & TextBox1.Value & "')"
sql8 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(10, 1).Value & "', '" & Plan7.Cells(10, 2).Value & "','" & TextBox1.Value & "')"
sql9 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(12, 1).Value & "', '" & Plan7.Cells(12, 2).Value & "','" & TextBox1.Value & "')"
sql10 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(13, 1).Value & "', '" & Plan7.Cells(13, 2).Value & "','" & TextBox1.Value & "')"
sql11 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(14, 1).Value & "', '" & Plan7.Cells(14, 2).Value & "','" & TextBox1.Value & "')"
sql12 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(15, 1).Value & "', '" & Plan7.Cells(15, 2).Value & "','" & TextBox1.Value & "')"
sql13 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(16, 1).Value & "', '" & Plan7.Cells(16, 2).Value & "','" & TextBox1.Value & "')"
sql14 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(17, 1).Value & "', '" & Plan7.Cells(17, 2).Value & "','" & TextBox1.Value & "')"
sql15 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(18, 1).Value & "', '" & Plan7.Cells(18, 2).Value & "','" & TextBox1.Value & "')"
sql16 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(19, 1).Value & "', '" & Plan7.Cells(19, 2).Value & "','" & TextBox1.Value & "')"
sql17 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(20, 1).Value & "', '" & Plan7.Cells(20, 2).Value & "','" & TextBox1.Value & "')"
sql18 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(21, 1).Value & "', '" & Plan7.Cells(21, 2).Value & "','" & TextBox1.Value & "')"
sql19 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(22, 1).Value & "', '" & Plan7.Cells(22, 2).Value & "','" & TextBox1.Value & "')"
sql20 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(23, 1).Value & "', '" & Plan7.Cells(23, 2).Value & "','" & TextBox1.Value & "')"
sql21 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo,quest, status, coment) VALUES('" & lb_max.Caption & "', '" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(24, 1).Value & "', '" & Plan7.Cells(24, 2).Value & "','" & TextBox1.Value & "')"
sql22 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(25, 1).Value & "', '" & Plan7.Cells(25, 2).Value & "','" & TextBox1.Value & "')"
sql23 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(26, 1).Value & "', '" & Plan7.Cells(26, 2).Value & "','" & TextBox1.Value & "')"
sql24 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(27, 1).Value & "', '" & Plan7.Cells(27, 2).Value & "','" & TextBox1.Value & "')"
sql25 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(28, 1).Value & "', '" & Plan7.Cells(28, 2).Value & "','" & TextBox1.Value & "')"
sql26 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(29, 1).Value & "', '" & Plan7.Cells(29, 2).Value & "','" & TextBox1.Value & "')"
sql27 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem,tipo, quest, status, coment) VALUES( '" & lb_max.Caption & "','" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & cb_feed_tipo.Value & "','" & Plan7.Cells(30, 1).Value & "', '" & Plan7.Cells(30, 2).Value & "','" & TextBox1.Value & "')"
sql28 = "INSERT INTO New_bd_feedback( codigo,ACRON, quem, quest, status) VALUES('" & lb_max.Caption & "', '" & CB_FeedBack_User.Value & "' , '" & Label42.Caption & "', '" & Plan7.Cells(31, 1).Value & "','" & Plan7.Cells(31, 3).Value & "')"
' Cria o objeto Connection.
Set conn = New ADODB.Connection
With conn
' Define o provedor OleDB para a conexão.
.Provider = "Microsoft.JET.OLEDB.4.0"
' Abre uma conexão com o Northwind.mdb.
.Open connectionString ', "Administrador", "Sin@09!"
End With
Set rst = New ADODB.Recordset
With rst
.ActiveConnection = conn
' aqui ele executa
.Open sql1, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql2, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql3, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql4, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql5, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql6, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql7, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql8, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql9, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql10, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql11, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql12, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql13, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql14, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql15, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql16, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql17, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql18, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql19, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql20, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql21, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql22, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql23, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql24, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql25, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql26, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql27, conn, adOpenDynamic, adLockBatchOptimistic
.Open sql28, conn, adOpenDynamic, adLockBatchOptimistic
End With
Set rst = Nothing
conn.Close
MsgBox "Feedback incluso com sucesso"
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel