Greetings,
I noticed that that "offsets" are used by a lot of you when you are ranging userforms and input boxes. It seems like a pretty good technique to use instead of hard coding ranges so I thought that I would start learning this. If I understand this correctly the first column is the row and the second number is the column, pretty straight forward. However, I am getting a runtime error when I try to use this so apparently I am missing something.
For example, if I am trying to send my data to the "next blank" row. I thought that I would use this string, but I get a runtime error...
This string does not give me a runtime error, but the data ends up in B1048576 - I get the "B" column, but zero gives me the last row in the worksheet?
Would anyone mind explaining what is wrong with the initial string? Thank you for any insight.
I noticed that that "offsets" are used by a lot of you when you are ranging userforms and input boxes. It seems like a pretty good technique to use instead of hard coding ranges so I thought that I would start learning this. If I understand this correctly the first column is the row and the second number is the column, pretty straight forward. However, I am getting a runtime error when I try to use this so apparently I am missing something.
For example, if I am trying to send my data to the "next blank" row. I thought that I would use this string, but I get a runtime error...
Code:
Range("A1").End(xlDown).Offset(1, 0).Select
This string does not give me a runtime error, but the data ends up in B1048576 - I get the "B" column, but zero gives me the last row in the worksheet?
Code:
Range("A1").End(xlDown).Offset(0, 1).Select
Would anyone mind explaining what is wrong with the initial string? Thank you for any insight.