Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Macros and VB in excel

So i need to run a little quick and easy macro in excel to help me with this
data i need to compile. Its somewhat hard to explain, but basically i need
to figure out how to tell the macro to literally just hit the arrow right
key, 4 times, instead of having it recognize specific cells.

I have 30 workbooks with 30 sheets per workbook. Each sheet has the same
4x10 rows/columns filled out with their own unique data. I need to copy and
paste these 4x10 blocks of data and paste them on a new sheet, stacking them
horizontally.

I can get the macro to copy and paste the first block of data, then switch
to next sheet, but i cant get the new sheet, where i just pasted the data, to
move over 4 columns to the right, to get ready for the next run of the macro
to past the 2nd sheet of data.

Does this make sense? If so, please offer any help you can.

Thanks,

-Adam
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Macros and VB in excel

On Feb 20, 1:01*pm, Adam wrote:
So i need to run a little quick and easy macro in excel to help me with this
data i need to compile. *Its somewhat hard to explain, but basically i need
to figure out how to tell the macro to literally just hit the arrow right
key, 4 times, instead of having it recognize specific cells.

I have 30 workbooks with 30 sheets per workbook. * Each sheet has the same
4x10 rows/columns filled out with their own unique data. I need to copy and
paste these 4x10 blocks of data and paste them on a new sheet, stacking them
horizontally.

I can get the macro to copy and paste the first block of data, then switch
to next sheet, but i cant get the new sheet, where i just pasted the data, to
move over 4 columns to the right, to get ready for the next run of the macro
to past the 2nd sheet of data.

Does this make sense? *If so, please offer any help you can.

Thanks,

-Adam


I'm not sure exactly how your macros lay out is, but assuming you want
to toggle over 4 columns from the active cell, you can add this code
to the end of your code before it goes to the next sheet.

ActiveCell.Offset(0, 4).Select
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Macros and VB in excel

Well, you described a block as 4x10 row/columns which to me means four rows
down and ten columns across. However, you then imply that the block is
really 4x10 columns/rows when you say you can't get the new sheet to move
over four columns. GTVT06 gave you the basic code to move right four columns
from where the active cell is. So if it is really 10 columns then you will
need to modify that code expression.

"Adam" wrote:

So i need to run a little quick and easy macro in excel to help me with this
data i need to compile. Its somewhat hard to explain, but basically i need
to figure out how to tell the macro to literally just hit the arrow right
key, 4 times, instead of having it recognize specific cells.

I have 30 workbooks with 30 sheets per workbook. Each sheet has the same
4x10 rows/columns filled out with their own unique data. I need to copy and
paste these 4x10 blocks of data and paste them on a new sheet, stacking them
horizontally.

I can get the macro to copy and paste the first block of data, then switch
to next sheet, but i cant get the new sheet, where i just pasted the data, to
move over 4 columns to the right, to get ready for the next run of the macro
to past the 2nd sheet of data.

Does this make sense? If so, please offer any help you can.

Thanks,

-Adam

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
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
convert lotus 123w macros to excel macros rpiescik[_2_] Excel Programming 1 September 19th 04 12:41 PM
convert lotus 123w macros to excel macros rpiescik Excel Programming 1 September 18th 04 01:35 PM
Making excel macros run Word macros Matthew McManus Excel Programming 1 February 18th 04 02:57 AM


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

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"