Macro Code

C

cvgairport

You'd think this would be simple...

How do I get a macro to move down 1 cell? I just want a macro to copy the
contents of one cell to the cell below it.

I have already done this:

Sub CopyDown()
'
' CopyDown Macro
'
' Keyboard Shortcut: Ctrl+d
'
Selection.Copy
Range("A122").Select
ActiveSheet.Paste
End Sub

I want the A122 to be the cell below where the cursor happens to be when I
kick off the macro.

Any help would be appreciated.

Amy
 
M

Mike H

Hi,

2 ways

ActiveCell.Copy Destination:=ActiveCell.Offset(1)

or

ActiveCell.Offset(1) = ActiveCell.Value
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Copying & Pasting with recorded macros 9
Macro Help 2
Macro Help 3
Pasting cell contents into a macro 1
Macro command 3
Macro - Code Missing 4
Help with a macro 2
Copy & paste macro for multiple worksheets 8

Top