Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default specifying ranges using cells

I need to copy a range of cells and paste the values into another worksheet
within a loop where the column part of the cell reference changes with each
loop iteration. For example, copy & paste the values from Worksheet One
cells B5 through B10 to Worksheet Two beginning at cell D7; then shift to C5
through C10 to cell E7, and etc. I have used both Range and Cells approaches
without success. Is there an easy way to do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default specifying ranges using cells


For i = 2 to 3
Cells(5,i).Resize(,6).Copy Worksheets("Sheet2").Cells(7,i+2)
Next i

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mitch" wrote in message
...
I need to copy a range of cells and paste the values into another

worksheet
within a loop where the column part of the cell reference changes with

each
loop iteration. For example, copy & paste the values from Worksheet One
cells B5 through B10 to Worksheet Two beginning at cell D7; then shift to

C5
through C10 to cell E7, and etc. I have used both Range and Cells

approaches
without success. Is there an easy way to do this?



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
Named Cells (Ranges) Derek Hart Excel Discussion (Misc queries) 4 November 3rd 08 07:59 AM
ADD DIFFERENT RANGES OF CELLS Add non continuous ranges of cells Excel Discussion (Misc queries) 4 June 27th 06 01:15 AM
Dynamic Ranges/Cells?? glpabr Excel Programming 1 June 2nd 05 01:01 PM
empty cells in ranges UniDave Excel Discussion (Misc queries) 2 November 26th 04 02:18 AM
Special Ranges of Cells BOHICA Excel Programming 2 December 12th 03 12:05 PM


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