A
absolutfreedom
Hi, I'm writing a macro for excel. This is what the subroutine i
supposed to do:
- Insert a value into a specified cell
- Move to the next row below it.
Well, but it's kinda tricky, to move the focus to the next row, I'm no
supposed to use something like this: Range("C" & ActiveCell.Row
i).Select
What I'm supposed to do is to insert a "carriage return"/CRL
character, so that the focus will move to the next row (same column).
When we are typing an excel file, notice that when you press "Enter
key, the focus/cursor will move to the next row? Yeap, that's what I'
supposed to do!
I tries to do it using Chr(13) or vbCrlf, but neither works. What the
did is that the new line was inserted in the same cell (i.e. it'
similar like typing inside a cell, and you press ALT + Enter).
Can anyone help?
Thanks!
Adria
supposed to do:
- Insert a value into a specified cell
- Move to the next row below it.
Well, but it's kinda tricky, to move the focus to the next row, I'm no
supposed to use something like this: Range("C" & ActiveCell.Row
i).Select
What I'm supposed to do is to insert a "carriage return"/CRL
character, so that the focus will move to the next row (same column).
When we are typing an excel file, notice that when you press "Enter
key, the focus/cursor will move to the next row? Yeap, that's what I'
supposed to do!
I tries to do it using Chr(13) or vbCrlf, but neither works. What the
did is that the new line was inserted in the same cell (i.e. it'
similar like typing inside a cell, and you press ALT + Enter).
Can anyone help?
Thanks!
Adria