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

Assuntos que não estiverem relacionados as categorias acima. Se não souber em qual categoria sua mensagem se encaixa, envie aqui.
Por JDuro
#50216
Boas pessoal.

Pretendo inserir em algumas células do meu excel um duplo clique que faça hide/unhide (ocultar/mostrar) algumas linhas. No documento anexo:

- As células amarelas são para o duplo clique;
- E as laranjas para ocultar com o duplo clique.

É possível?

Abraço
João
Você não está autorizado a ver ou baixar esse anexo.
Por osvaldomp
#50226
Experimente:
Código: Selecionar todos
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
 If Intersect(Target, Range("3:3,9:9,16:16,21:21")) Is Nothing Then Exit Sub
 Select Case Target.Row
  Case 3: Rows("4:8").Hidden = Not Rows("4:8").Hidden
  Case 9: Rows("10:15").Hidden = Not Rows("10:15").Hidden
  Case 16: Rows("17:20").Hidden = Not Rows("17:20").Hidden
  Case 21: Rows("22:26").Hidden = Not Rows("22:26").Hidden
 End Select
 Cancel = True
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