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
#16115
O usuário digitaria um numero em uma célula e a macro irá pegar um bloco de celulas, C2:I5 , e esse bloco vai para a coluna ao lado, mantendo a formatação. por exemplo, o usuário digita 2, então a macro irá gerar 2 blocos desses, mantendo a formatação.
Você não está autorizado a ver ou baixar esse anexo.
#16182
Bom dia!!

Tente assim
Código: Selecionar todos
Sub Ntimes()
Dim iCont As Integer

iCont = Application.InputBox("Number of Rows", "Number of Rows", Type:=1)
Do While iCont <> 0
    Call AleVBA_3230
iCont = iCont - 1
Loop

End Sub
Código: Selecionar todos
Sub AleVBA_3230()
Dim iCont As Integer
Dim LC As Long

LC = Cells.Find(What:="*", SearchDirection:=xlPrevious, SearchOrder:=xlByColumns).Column
    Range("C1:I4").Copy
    Cells(1, LC + 1).Offset(0, 1).PasteSpecial (xlPasteAll)

End Sub
Att
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