• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please help me correcting this code

ThrottleWorks

Excel Ninja
Sir,


I am facing a problem while executing below mentioned code.


Range(short_single). Offset (0, 33) .select


I want select a range by using this code, I am not getting bug, but the code is not executed either.


Short_single is the last cell in column B, this is different every time, that is why I have defined it as short_single

In this example Cell B17 is last cell & macro is correctly showing short_single.


I want to select a range from B17 to AI17, so I have given following code to select the range.


Please help me in this.
 
Sachinbizboy


Instead of

Code:
Range(short_single).Offset (0, 33).select


Try:

Range(short_single).Resize(1,33).select


or some derivative of that
 
Back
Top