Extracting to text

cpu111

New Member
Joined
Oct 12, 2006
Messages
2
Is it possible to extract a column (or row) into a text document w/ each cell separated by commas (or another type of punctuation, or a space that can be Ctrl-R'ed into punctuation)?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,

Have you tried using Save As and changing the Save as type to either CSV (Comma delimited)(*.csv) or CSV(MS-DOS)(*.csv)?
 
Upvote 0
I tried that, but it still results in an XLS that doesn't change the cell format. Maybe I should try explaining a bit more. I have a long list of email addresses (they are in a column) and want to send the list an email, so having the column be converted to a document (maybe there is a way to put it into a single cell) with each email address separated by a comma.
 
Upvote 0
Hi, cpu111
Welcome to the Board !!!!

this works for me
Code:
Sub test()
arr = Selection
MsgBox Join(Application.Transpose(arr), ",")
End Sub

kind regards,
Erik

EDIT: selection must be in one column
if in one row use
Code:
Join(Application.Transpose(Application.Transpose(arr)), ",")
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top