Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can modify the macro he
http://www.mcgimpsey.com/excel/mergedata.html change vTxtArr(i, 1) = vTxtArr(i, 1) & sDelim & vTxtArr(i, j) to vTxtArr(i, 1) = Left(vTxtArr(i, 1) & sDelim & vTxtArr(i, j), 1000) In article , Bob wrote: I have a column with about 6,000 rows. I need a macro that will combine cells in the column with a pipe(|) between each. The key is that each row should be no more than 1,000 characters. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how do I make the procedure work as a macro?
"JE McGimpsey" wrote: You can modify the macro he http://www.mcgimpsey.com/excel/mergedata.html change vTxtArr(i, 1) = vTxtArr(i, 1) & sDelim & vTxtArr(i, j) to vTxtArr(i, 1) = Left(vTxtArr(i, 1) & sDelim & vTxtArr(i, j), 1000) In article , Bob wrote: I have a column with about 6,000 rows. I need a macro that will combine cells in the column with a pipe(|) between each. The key is that each row should be no more than 1,000 characters. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Check out David McRitchie's "Getting Started with Macros":
http://www.mvps.org/dmcritchie/excel/getstarted.htm In article , Bob wrote: how do I make the procedure work as a macro? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got this to run,however, I get a "Object variable or with block variable
not set" error message at the line vTxtArr = rRng.Value "JE McGimpsey" wrote: Check out David McRitchie's "Getting Started with Macros": http://www.mvps.org/dmcritchie/excel/getstarted.htm In article , Bob wrote: how do I make the procedure work as a macro? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I got this to run without error messages, however,I don't see where the
combined cells are (I did switch vTxtArr(i, 1) = vTxtArr(i, 1) & sDelim & vTxtArr(i, j)as suggested) . "JE McGimpsey" wrote: Check out David McRitchie's "Getting Started with Macros": http://www.mvps.org/dmcritchie/excel/getstarted.htm In article , Bob wrote: how do I make the procedure work as a macro? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The text from all columns is merged into the first column.
In article , Bob wrote: I got this to run without error messages, however,I don't see where the combined cells are (I did switch vTxtArr(i, 1) = vTxtArr(i, 1) & sDelim & vTxtArr(i, j)as suggested) . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to combine 'like' rows | Excel Discussion (Misc queries) | |||
Combine cells with the same reference and combine quantities | Excel Discussion (Misc queries) | |||
Combine 2 macro | Excel Discussion (Misc queries) | |||
Combine two spreadsheets using Macro | Excel Worksheet Functions | |||
Combine Files macro | Excel Programming |