Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with creating a Macro

Here is my problem:

I basically want to be able to put a curser on a cell (lets say C12)
and have it copy that row and the four rows below it and then paste
that data into another setion (lets say C4 on the same page). And
also be able to do this over and over when I go down my list of
companies. Would anyone know the coding to create this macro?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Help with creating a Macro

Sub MyMacro()
activecell.Resize(5).Entirerow.copy Range("C4")
End Sub

or if not the "row" as stated
Sub MyMacro()
Activecell.resize(5,10).copy Range("C4")
End Sub



--
Regards,
Tom Ogilvy



" wrote:

Here is my problem:

I basically want to be able to put a curser on a cell (lets say C12)
and have it copy that row and the four rows below it and then paste
that data into another setion (lets say C4 on the same page). And
also be able to do this over and over when I go down my list of
companies. Would anyone know the coding to create this macro?


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
VBA and creating a Macro tommy Excel Discussion (Misc queries) 4 January 28th 09 03:52 PM
VBA macro creating pdf Brad Excel Discussion (Misc queries) 9 June 18th 08 10:25 PM
need help for creating a macro J_J[_2_] Excel Programming 4 March 27th 06 11:31 AM
Creating a macro which presses a button containing a recorded macro petros89[_3_] Excel Programming 3 October 5th 05 02:49 PM
help creating a macro Scott Excel Programming 1 December 3rd 03 09:26 AM


All times are GMT +1. The time now is 10:33 AM.

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

About Us

"It's about Microsoft Excel"