I am a VBA beginner and I am not sure if this is a stupid question.
I have range1=range("A1:F500") and I want to put "F" and "500" as macro
variables, for instance
sub aaa(Dim lastcolumn as long, Dim lastrow as long)
range1=range("A1:lastcolumn lastrow")
end sub
Is there anyway to do that?