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.
Por Dunguinha
Posts
#73335
Bom dia.
Peço ajuda para uma macro que apague uma coluna com células específicas a partir de uma célula ativa.

Planilha detalhada em anexo.
Você não está autorizado a ver ou baixar esse anexo.
Por osvaldomp
#73336
opção1 - em um módulo comum e precisa ser disparada manualmente
Sub LimpaIntervalo()
If ActiveCell.Row = 1 And ActiveCell.Column Mod 2 = 0 Then
ActiveCell.Offset(2, 1).Resize(16) = ""
End If
End Sub

opção2 - no módulo da planilha Jun, será disparada ao selecionar as células B1, D1, F1, ...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row = 1 And Target.Column Mod 2 = 0 Then
Target.Offset(2, 1).Resize(16) = ""
End If
End Sub

obs. ESTE FÓRUM CONTINUA COM PROBLEMAS QUE NÃO PERMITEM A FORMATAÇÃO DE TEXTOS E DE CÓDIGOS.
E FAZ TEMPO ISSO ... PARECE QUE O FÓRUM ESTÁ ABANDONADO!
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