#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Increasing columns

If the code

row= 10
For i = 1 to 5
row= row+1
Worksheets("73").Range("b" & row).Copy Destination:=Worksheets("73-1
Data").Range(("b" & row)
next i

lets me take and copy b11, b12, b13, b14, b15

So how can I take the column and move it. Lets say that in the above I want
to move the copy to destination to change from a, b, c, d, e

row = 10
column = a
For i = 1 to 5
row= row+1
column = column + 1(???not really 1 so how do I do it????)
Worksheets("73").Range("b" & row).Copy Destination:=Worksheets("73-1
Data").Range((column & row)
next i

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Increasing columns


Dim rowLoopCounter As Integer
Dim coloopCounter As Integer

For rowLoopCounter = 10 to 15
For colLoopCounter = 1 to 5 ' a=1, b=2...e=5
Worksheets("73").Cells(rowLoopCounter, colLoopCounter).Copy _
Destination:=Worksheets("73-1 Data").Cells(rowLoopCounter, colLoopCounter)
next ' move to next column
Next ' move to next row

I think maybe that'll get you going. At least I hope it does.

Although maybe you want to leave the range to be copied as "B" &
rowLoopCounter - I wasn't real sure from what you showed.


"JTWarthogs" wrote:

If the code

row= 10
For i = 1 to 5
row= row+1
Worksheets("73").Range("b" & row).Copy Destination:=Worksheets("73-1
Data").Range(("b" & row)
next i

lets me take and copy b11, b12, b13, b14, b15

So how can I take the column and move it. Lets say that in the above I want
to move the copy to destination to change from a, b, c, d, e

row = 10
column = a
For i = 1 to 5
row= row+1
column = column + 1(???not really 1 so how do I do it????)
Worksheets("73").Range("b" & row).Copy Destination:=Worksheets("73-1
Data").Range((column & row)
next i

Thanks


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
increasing percentage S S Excel Worksheet Functions 3 May 6th 06 05:57 PM
Increasing Number David Excel Discussion (Misc queries) 2 March 8th 06 01:40 PM
Increasing number of columns beyond IV PSandles Excel Worksheet Functions 1 February 22nd 06 04:36 AM
Increasing M in M/D/Y Bill45 Excel Discussion (Misc queries) 2 May 19th 05 06:32 PM
Increasing number of columns in spreadsheet ren422 Excel Discussion (Misc queries) 2 April 15th 05 11:57 AM


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