loop function

lucky

New Member
Joined
Feb 28, 2002
Messages
18
Hi All! Cool new board!
Not sure if loop function is what i need.....
I wish to copy a row (A1:Z1) from sheet1! and paste to row (A1:Z1) sheet2!, then change row Sheet1!A1:Z1's contents (via a series of VLOOKUP's) and paste to Sheet2!A2:Z2, then A3:Z3, A4:Z4, etc......but always copying from the same row in Sheet1.
Excuse my inability at communicating my problems! always the case!

Cheers!
Lucky
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I think that you did not mean "loop" function. Is not clear how you would like to handle the series of events you described. The initial input in Sheet1 is going to be changed manually changing the content of the cells by formula vlookup? And when are you going to change again this content?
 
Upvote 0
Hi

It sounds like you simply need to link sheet2 to sheet1????

If so, goto sheet2 A:1
Type =
Click on the sheet1 tab and click on Cell A:1
Click the little checkmark on your formula bar. Left hand side above col A,B, or C

Now right click on sheet2 cell A:1
Choose copy
Select(highlight), by dragging mouse, the range of sheet2 A:1 to Z:?

Now right click anywhere in the shaded selection and choose paste.

Hope this is what you need?

Tom
 
Upvote 0
To copy the values in Sheet1 range A1:Z1 to the next available row in Sheet2 :-

Sub Copy_Values
Dim rw As Long
rw = Sheets("Sheet2").UsedRange.Cells.SpecialCells(xlCellTypeLastCell).Row + 1
Sheets("Sheet2").Cells(rw, 1).Resize(, 26) = Sheets("Sheet1").[A1:Z1].Value
End Sub

Note : If Sheet2 is blank, the data will be put in row 2.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top