1
Dear community,
I believe it is simple the most solution, I am trying to make the following rule of business:
I have a list of names on a Plan1, I need the name of each of them to be repeated by 12x each in Plan2, I have a code that can repeat the first name, but I’m not able to believe my value.
Sub RODAR()
Dim num As Integer
Dim wb As Workbook
Dim ws As Worksheet
Dim wss As Worksheet
Dim nome As String
Set wb = ActiveWorkbook
Set ws = Sheets("Plan1")
Set wss = Sheets("Plan3")
nome = 1
For cont = 2 To 13
wss.Select
nome = Cells(2, 2)
ws.Select
Cells(cont, 2).Value = nome
nome = nome
Next
Calm Evert, logic is good, but the code didn’t work, I’ll have to check, but thank you :)
– WillGreco
What was the mistake? And in which line? In this case see what name says:
NOMES = wsORIGEM.Range("A1:A3").Value
is the matrix containing the names in the spreadsheetPlan1
... A1 to A3... and will always paste in the SpreadsheetPlan2
starting from the first row of column A. I believe that what you need to adapt to work would be just that...– Evert