Hi
My problem:
I need to manipulate different worksheets of varying lengths and it is not convenient to scroll through my macro code and change the ranges.
Is it possible to set up an input box, eg.
Length = Application.InputBox("Insert the rumber of rows.", "Query", , , , , , 1)
And then using this variable (Length) for your range instead of, for example, AF2:AF10900.
So then it would be possble to use something like:
Range("Length").Select, instead of
Range("AF2:AF10900").Select
I've tried many variations of: Range("Length").Select, but i can't get it to work.
Please help. Thanks
My problem:
I need to manipulate different worksheets of varying lengths and it is not convenient to scroll through my macro code and change the ranges.
Is it possible to set up an input box, eg.
Length = Application.InputBox("Insert the rumber of rows.", "Query", , , , , , 1)
And then using this variable (Length) for your range instead of, for example, AF2:AF10900.
So then it would be possble to use something like:
Range("Length").Select, instead of
Range("AF2:AF10900").Select
I've tried many variations of: Range("Length").Select, but i can't get it to work.
Please help. Thanks