Hello,
I want to call a Range that will be in my variable row "LastRow" and span from column B to column I. I have tried several different methods and cant seem to get the syntax correct. Attached is my last "hail mary" of an attempt that ultimately failed. Thank you.
I want to call a Range that will be in my variable row "LastRow" and span from column B to column I. I have tried several different methods and cant seem to get the syntax correct. Attached is my last "hail mary" of an attempt that ultimately failed. Thank you.
VBA Code:
Private Sub CommandButton1_Click()
LastRow = Sheet5.Cells(1000, 2).End(xlUp).Row + 2 'Finds the last edited row and then adds two rows
LastNumber = Sheet5.Cells(1000, 1).End(xlUp).Value + 1 'Finds the last question number and adds 1
Sheet5.Cells(LastRow, 1).Select ' Selects LastRow in the first Column
ActiveCell.Formula = LastNumber ' Gives it LastNumber
Sheet5.Range(BLastRow,ILastRow)
End Sub