So here is my problem. I know we can define a range in VBA, say for example like
Range("A1:A300"). Now say I have some integer x. I want the range from A1 to Ax. How can I write this in a code? Range("A1:Ax") clearly does not work
GSerg, that "dupe", by the way, is way over-complicated for this specific need. It also won't handle AA thru whatever the current maximum column is :-)
@paxdiablo I did not vote for close as duplicate, otherwise there would be a close vote on the question. The question is not about Excel or ranges, it is about concatenating a string and a number. This question, while arguably not welcome on SO considering all the "please get a book on the language basics" comments these questions have generated, has been answered plenty of times, I simply dumped a link to the first one I found that shows the technique, with the added bonus of being in Excel context.
AAthru whatever the current maximum column is :-)