Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
#71029
Pessoal tem como criar uma condição no combobox (formulário) para selecionar uma guia e ativá-la tipo

Combobox.value ou text = Planilha1, Planilha2 then
Sheets (Planilha1).Select
Sheets(Planilha1).Activate

Não quero usar o Private Sub cbmes_Change()
Quero colocar a instrução dentro de um botão. Ou seja quando eu selecionar a opção Planilha1 clico no botão e abre a planilha.
#71046
Para teste em um formulário adicione um ComboBox1 e copie/cole:

Private Sub UserForm_Initialize()
Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
ComboBox1.AddItem sht.Name
Next sht
End Sub
Private Sub comboBox1_Click()
Sheets(ComboBox1.ListIndex + 1).Activate
Unload Me
End Sub
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord