I would like to specify a variable instead of using a repetitive expression.
I wonder if you could please help me to fix this code below.
Instead of keep writing Thisworkbook.sheets("certainsheet") I would like to define a variable to express this.
Sub specificsheet()
Dim i As Integer
Dim v As Sheets
For i = 1 To 10
v = ThisWorkbook.Sheets("certainsheet")
v.Cells(i, 1).Value = i
Next
End Sub
Thank you so much for any comments.

v. Before the loop:Dim ws As Worksheet: Set ws = ThisWorkbook.Worksheets("certainsheet"). In the loop:ws.Cells(i, 1).Value = i. If you want to get rid of the loop then use:Dim i As Long: i = 10: ws.Range("A1:A" & i) = ws.Evaluate("Row(1:" & i & ")"). If you meant something different, please do clarify.