Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
balu,
Try the macro below. HTH, Bernie MS Excel MVP Sub BaluTranspose() Dim myR As Range Dim myF As Range Dim myC As Range Dim myRow As Long With Worksheets("Sheet1") Set myR = Intersect(.Range("A:A"), .UsedRange) End With With Worksheets("Sheet2") Set myF = Intersect(.Range("A:A"), .UsedRange) For Each myC In myR If Not IsError(Application.Match(myC.Value, myF, False)) Then myRow = Application.WorksheetFunction.Match(myC.Value, myF, False) .Cells(myRow, Columns.Count).End(xlToLeft)(1, 2).Value = myC(1, 2).Value End If Next myC End With End Sub "balu" wrote in message ... dears, im accessing excel through access by creating excel object and copyd some access query to sheet1 columns A and B now i want is like this WAY COPY all the cell values of sheet1!columnB where sheet1!columnA.values = sheet2!cellA1 next COPY all the cell values of sheet1!columnB where sheet1!columnA.value = sheet2!cellA2 and so on until sheet2!columnA having values (2) then copyd cell values of the ranges from sheet1 will be transposed on to sheet2 columnB rows can any one help me please |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loop to Filter, Name Sheets. If Blank, Exit Loop | Excel Programming | |||
(Complex) Loop within loop to create worksheets | Excel Programming | |||
Loop and transpose sets of data | Excel Programming | |||
I WANT TO TRANSPOSE LINKS, AS WE TRANSPOSE VALUES | Excel Worksheet Functions | |||
Advancing outer Loop Based on criteria of inner loop | Excel Programming |