Copy and Paste cells limitation
Hi Villy
Try the below macro which will create a .csv file from the column
data..Adjust the range A1:A100 to suit your requirement. If you are new to
macros..
--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()
Sub Macro()
Dim intFile As Integer
Dim rngTemp As Range
Set rngTemp = Range("A1:A100")
intFile = FreeFile
Open "c:\temp.csv" For Output As #intFile
Print #intFile, Join(WorksheetFunction.Transpose(rngTemp), ",")
Close #intFile
End Sub
If this post helps click Yes
---------------
Jacob Skaria
"Villy" wrote:
I need some help with Excel. I have a worksheet with over 1,000 rows. I
want to copy one column, which contains a value format like €œ1234-567€, and
transpose the values to a row. I cant use the traditional €˜copy-and-paste
special €“ transpose because there are too many cells across. Once I have a
row, I need to make it into one long string where each value is separated by
commas. Does anyone know how to do this?
I tried to transpose my column in chunks, into rows, and then copying into
Word, but Word brings over the borders so it displays as a table €“ which I
dont want. And I dont know how to add the comma separators.
Thanks for any help you can provide.
|