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.
  • Avatar do usuário
Avatar do usuário
Por DrummerTattoo
Posts Avatar
#49627
Gente, bom dia

Fiz uma macro que ela faz um somase e depois cola valores, queria que ela quando clicasse no botão que eu fiz, partisse para a próxima coluna da direita
Eu fiz isso na B, ao clicar no botão, ela executasse não C e assim por diante,
Segue código

Sub Atualizar()
'
' Atualizar Macro
'

'
Selection.End(xlToRight).Select
Selection.End(xlToLeft).Select
Range("B8").Select
ActiveCell.FormulaR1C1 = "=SUMIF(BASE!C[1],'28'!R[-7]C[-1],BASE!C[2])"
Range("B9").Select
ActiveCell.FormulaR1C1 = "=SUMIF(BASE!C[1],'28'!R[-8]C[-1],BASE!C[3])"
Range("B8:B9").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Por babdallas
#49935
Clica em +Resposta e Adicionar um Anexo para colocar um exemplo. Assim ficará mais fácil de entender a sua necessidade.
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