Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

moving one cell down

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Moving one cell down in VBA

Moving one cell down in VBA

ResolvedVersion 2007

Sergio has attended:
Excel VBA Intro Intermediate course

Moving one cell down in VBA

Hi,

I am trying how to express in VBA to move with cursor one cell down.
I use the following

"Selection.End(xlDown).Select"

to go to the last non empty cell but after that I would need to go one further cell down to do a paste.....however when I record the
macro I have got the following:

Range("A4").Select

Which obviously will move the cursor to the cell A4.....so is there a way to dynamically move the cursor one cell down?
Thanks a lot for the reply

Sergio

RE: Moving one cell down in VBA

Could you not use ActiveCell.Offset(1, 0).select ??
Sophie

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Converting an American date format to European using Formula

Excel depending on your local setting will only pick up date values of the dd mmm yyyy oders as date type. If you import data from various sources including America their date order is different with data value in mmm dd yyyy, excel can only treat it as text indicated by left aligning it. To overcome this you have to do the the following.

1. Extract the date components mmm dd yyyy, by using the the Text functions LEFT, MID or RIGHT

2. Reorder dd mmm component and concatenate using "&" in the right order this will create a text string with the date in the right order it then needss to be converted to a value so excel can recognise it.

3. To convert to value encase in TEXT function.

4. Format to desired date format.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.