Yes. Inside your range call you are providing the range as a string. You
just need to use the appropriate string concatenation sequence to get the
range string you want. & (ampersand) is the string concatenation operator
in VBA.
range("A1:" & lastcolumn & lastrow)