• 0
Sign in to follow this  
Ju_liana

ajuda no formulário!!

Question

ERRO 1004: Método Select da classe Range falhou.

Eu só queria salvar as informações adquiridas do teclado na planilha! Mas estou fazendo alguma burrada!

estou no desespero!! Quem puder ajudar, agradeço! 

Segue o código:

Private Sub btsalvainfos_Click()
ActiveWorkbook.Worksheets("Plan1").Select
Selection.EntireRow.Insert

Plan1.Cells(3, 1) = Me.ComboBox1.Text
Plan1.Cells(3, 2) = Me.TextTAREFA.Text
Plan1.Cells(3, 3) = Me.TextRESP.Text
Plan1.Cells(3, 4) = Me.TextPRAZO.Text
Plan1.Cells(3, 5) = Me.TextDIF.Text
Plan1.Cells(3, 6) = Me.ComboBox2.Text

Me.ComboBox1 = Empty
Me.TextTAREFA = Empty
Me.TextRESP = Empty
Me.TextPRAZO = Empty
Me.TextDIF = Empty
Me.ComboBox2 = Empty

ComboBox1.SetFocus

End Sub

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this