Jump to content
Fórum Script Brasil
  • 0

Erro em tempo de execução '404'




Estou iniciando em VBA e de cara estou em duvida. Copiei este código da MicroSoft https://docs.microsoft.com/pt-br/office/vba/language/reference/user-interface-help/listbox-control-boundcolumn-controlsource-rowsource-properties-example e deu esse erro: ''Erro em tempo  de execução  '404': O objeto é obrigatório".

Alguém poderia me explicar como resolver esse erro?

O código é esse:

Private Sub UserForm_Initialize()

ListBox1.ColumnCount = 5 ListBox1.RowSource = "a1:e4"

ListBox1.ControlSource = "a6"

'Place the ListIndex into cell a6

ListBox1.BoundColumn = 0

End Sub

Edited by EACalaça
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

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

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.

  • Forum Statistics

    • Total Topics
    • Total Posts
  • Create New...