Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
paste transpose array of variables
I have a macro to copy from first column and then paste transpose into the
second row . How do I just copy and paste only from a specific character €œ:€ in each cell? Eg if in a cell the value is €œ abcd:ID€ , I would like to copy and paste transpose only €œID€. I have the following code to just copy and paste everything in the cells. I am not sure how to paste from only specific character. Thank you very much in advance for you help. I am using the following code: Public Sub test() Dim ws As Worksheet Dim Lastrow As Long For Each ws In ActiveWorkbook.Worksheets With ws Lastrow = .Range("A" & Rows.Count).End(xlUp).Row ..Range(.Cells(1, 1), .Cells(Lastrow, 1)).Copy ..Range(.Cells(2, 2), .Cells(2, Lastrow + 1)).PasteSpecial Paste:=xlPasteAll, Transpose:=True End With Next ws End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
paste transpose | Excel Programming | |||
clearing array variables and using an array to determine min value | Excel Programming | |||
Transpose array sum | Excel Worksheet Functions | |||
Using Transpose from within VBA with 256 array | Excel Programming | |||
Transpose Array | Excel Discussion (Misc queries) |