Jack-P-Winner
Member
I have a Macro that goes to column "O" and I want to change it to only go to column "N". What needs to change? I thought it was the letter i but I can not find my notes what letters = what. Thanks for the help
If you need a copy of the book I can upload one. In the snip you will see the ? in column "O". The macro tells it to place an ? in a blank cell but I do not want it to look at "O" only go to "N"
Thanks
Code:
Sub ResetBackToGame()
Dim d As Double:
d = Application.WorksheetFunction.CountIf([i2:i101], "?")
Dim i As Integer:
'make sure user entered positive number 1 to 50 into Q5
If IsEmpty(Range("Q5")) _
Or Range("Q5") < 1 _
Or Range("Q5") > 50 Then
'do nothing if is empty or value not between 1 and 50, inclusive
Exit Sub
End If
i = 50 - [q5]
Application.ScreenUpdating = False
[I2:O101].Copy Cells(3 + i - d, 9) 'copies I2:O101 to position (3+i-d) rows down.
Range("i2", Cells(2 + i, 15)) = "?" 'puts ? in I2 over & down to cleared row in O.
[i102:o152].CLEAR: [q5].ClearContents
Application.ScreenUpdating = True 'not required, auto-resets to True at End Sub or Exit Sub
End Sub
If you need a copy of the book I can upload one. In the snip you will see the ? in column "O". The macro tells it to place an ? in a blank cell but I do not want it to look at "O" only go to "N"
Thanks
Attachments
Last edited: