LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Macro Question

I need some help with a macro i want to run. It involves cutting a block of
data from a workbook, and pasting transposed into another workbook. So
basically i want to be able to run this macro that will copy the block of
data from data workbook, switch workbooks, paste transposed onto the new
workbook, move down for rows (the original data only has 4 columns), switch
back to the original work book, and then move to the next sheet. And then
repeat over and over and over again. etc. I need it to move down 4 rows so
its ready for the next sheet of data, so i can "stack" the data on top of
each other. Heres the code that i have when i recorded the macro

Range("E15:H24").Select
Selection.Copy
Windows("Data Sheet-2-20-08.xls").Activate
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=True
ActiveCell.Offset(0, 1).Select
Windows("Advocate.xls").Activate
ActiveSheet.Next.Select

The issue im having is that i need to remove the "Selection" line of code.
Each time i run the macro its going to always copy and paste to that cell.
What i need it to do is move down 4 rows each time, so i can "stack" the data
on top of each other.

Let me know if this makes sense, and if you can help me with this.

-Adam



 
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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Macro Question carl Excel Worksheet Functions 2 May 15th 07 07:23 PM
question on macro Harry Excel Discussion (Misc queries) 8 April 13th 06 04:25 PM
macro question kev6872 Excel Programming 1 August 27th 04 06:15 PM
macro question foamfollower Excel Programming 2 September 20th 03 02:04 AM


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

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"