#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Macro Code

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Macro Code

Got it from the last thread... thanks!

"cvgairport" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Macro Code

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.


"cvgairport" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Code muddan madhu Excel Discussion (Misc queries) 4 April 13th 08 07:23 PM
Macro code Shu of AZ Excel Discussion (Misc queries) 8 December 2nd 07 12:52 AM
VBA code for macro help Cam Excel Discussion (Misc queries) 0 September 7th 07 07:14 PM
Deleting code from a macro (by a macro) Brettjg Excel Discussion (Misc queries) 2 May 8th 07 10:14 PM
Help With Macro Code?? Neil Smith Excel Worksheet Functions 1 August 24th 06 07:40 PM


All times are GMT +1. The time now is 05:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"