Last active
September 6, 2016 18:17
-
-
Save guaxinim/1c23ade6e6600eda9412a64d53c02c72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Macro para preenchimento de valores no excel