Skip to content

Instantly share code, notes, and snippets.

@guaxinim
Last active September 6, 2016 18:17
Show Gist options
  • Save guaxinim/1c23ade6e6600eda9412a64d53c02c72 to your computer and use it in GitHub Desktop.
Save guaxinim/1c23ade6e6600eda9412a64d53c02c72 to your computer and use it in GitHub Desktop.
Sub Macro_PreencheColunaA()
Dim quantidade As Integer
Dim asque As Integer
asque = 65
Dim cela As Integer
cela = 14
quantidade = cela + 9
Dim coluna As Integer
coluna = 4
Dim valorCelula As String
valorCelula = "4"
Do While cela <= quantidade
Dim temp As String
temp = Strings.Chr(asque)
Cells(cela, coluna) = "=Plan1!" & temp & valorCelula
cela = cela + 1
asque = asque + 1
Loop
End Sub
Sub Macro_PreencheColunaD()
Dim quantidade As Integer
Dim asque As Integer
asque = 77
Dim cela As Integer
cela = 14
quantidade = cela + 9
Dim coluna As Integer
coluna = 5
Dim valorCelula As String
valorCelula = "4"
Do While cela <= quantidade
Dim temp As String
temp = Strings.Chr(asque)
Cells(cela, coluna) = "=Plan1!" & temp & valorCelula
cela = cela + 1
asque = asque + 1
Loop
End Sub
@guaxinim
Copy link
Author

guaxinim commented Sep 6, 2016

Macro para preenchimento de valores no excel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment