![]() |
|
|
|
#1
|
|||
|
|||
|
what do you mean with "data is variable": the format, or text data, numeric data..
Give us some details please. DAta are in other sheets in the same workbook? or in other workbooks? |
|
#2
|
|||
|
|||
|
Quote:
2.And they are in the same workbook. |
|
#3
|
|||
|
|||
|
Take a look at the example worksheet, see how it works.
The macro depends on Cells B5 si B6 marked in yellow for column number and worksheet to copy from, you can change them as you need. The macro looks like this: Sub SchimbaCap2() Dim col As Range, row As Range, Myrange As Range Set col = Worksheets("Hoja1").Range("B1") If Worksheets("Hoja1").Range("B2") = 0 Then MsgBox " Type in cell B6 the name of the source worksheet!" Exit Sub End If Set Myrange = Range(Worksheets(Worksheets("Hoja1").Range("B2").V alue).Cells(5, col), Worksheets(Worksheets("Hoja1").Range("B2").Value). Cells(15, col)) Myrange.Copy Worksheets("Hoja3").Range("A5").PasteSpecial (xlPasteValues) Application.CutCopyMode = False Worksheets("Hoja3").Activate On Error GoTo 0 End Sub |
|
#4
|
|||
|
|||
|
Ohh, this seems to be the way to follow because it grabs the info from i sheet and takes it to another (Y).
"But" the thing is that i need to take from the 3 personel columns in different sheets and join them on the data column. Check the example2 Thnx in advance MS |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to create two columns based on a certain criterior from the original two column? | where_pc | Excel | 3 | 06-13-2011 10:39 AM |
Need to search a column for a macth and return a result from a third column
|
pdfaust | Excel | 2 | 02-03-2011 03:02 PM |
How to expand one column into two columns?
|
Jamal NUMAN | Excel | 1 | 01-12-2011 07:59 PM |
How to compare 2 columns with other two columns in EXECL 2007?
|
Learner7 | Excel | 5 | 06-12-2010 09:54 AM |
Graphing in Excel - one plot many columns/pick one column
|
jerryjaysr | Excel | 4 | 06-29-2006 07:27 AM |