Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
DM
 
Posts: n/a
Default macro loop

I am trying to write a macro that, after starting at a given reference point,
loops to do the following action for several hundred lines in Excel:

-Moves left a constant number of columns
-Highlights and copies 10 horizontally adjacent cells
-Jumps to another tab
-Pastes the copied values into a given range of cells on the new tab
-Moves to a given cell on the new tab then copies the value from that given
cell
-Moves back to the initial tab
-Pastes the copied value into a given cell on the initial tab

The loop should then tell the sheet to move down one row and repeat the
procedure (moving left a constant number of columns, highlighting and
copying, jumping to another tab, etc).

Any thoughts on how to do this in visual basic? Any help would be very much
appreciated! Thank you in advance.
 
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
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
how can i loop a macro Remote help Excel Discussion (Misc queries) 1 July 21st 05 02:57 AM
Loop Macro autofilter Paul. Excel Discussion (Misc queries) 2 March 25th 05 09:35 AM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
macro loop Helen Excel Discussion (Misc queries) 7 January 12th 05 02:42 PM


All times are GMT +1. The time now is 03:14 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"