Search : in
By :

Macro to copy and paste value every nth row

Last answer on Feb 12, 2009 6:16:19 am GMT dareme, on Nov 13, 2008 8:58:23 pm GMT 
 Report this message to moderators

Hi all,

I need to copy cell value in D:1 onto a range of cell (O:3 to O:31) and from D:34 onto (O36: to O66) and so on... i.e. every 33 rows

I have a few hundred of these excel files to grapple with so it's really not an option to do it manually. Also each excel file has different size, e.g. some starts from 1960 and ends at 1981 while some starts from 1965 and ends at 1971.

I would really appreciate it if someone can suggest a macro that will do the job. Many thanks!


JA

Configuration: Windows XP
Internet Explorer 7.0

Best answers for « Macro to copy and paste value every nth row » in :
Connect a database (MDB) to excel Show[VBA] Connecting a database (MDB) to excel Below is a tips of how to connect an Access database (MDB) in an application excel Add reference Microsoft DAO object librairy X.X In a general module (eg Module1) paste the code below...
Adding a VBA CommandButton with its respective the code ShowAdding a VBA CommandButton with its respective the code Paste these two sub in a general module (Module1 for example). Sub CreateButton() Dim Obj As Object Dim Code As String Sheets("Sheet1").Select 'create button ...
[VBA: VB6] Using excel from another application Show[VBA: VB6] Using excel from another application Here is a little routine to call Excel from VB6 or another Office application. Paste in a general module (eg Module1) In VBA>> Insert>> Module and paste in the window ... In VB6>>...

2

 pc, on Feb 12, 2009 6:16:19 am GMT
  • +3

This might be a start to solving your problem. This macro will highlight the data that you need so that you can extract it. don't have advice on the rest of the problem

http://support.microsoft.com/kb/213438

Reply to pc