Solved

to export data from excel to notepad as semicolon and side to side

Posted on 2013-10-25
4
344 Views
Last Modified: 2013-10-31
I have one excel file and it consists of the cell of 468 and I need them in word or notepad as semicolon between each other
for example

in Excel

1.Test1
2.Test2
3.Test3
--
--
--
468.test 468

and I would like them within notepad or word as semicolon between each other as sequentially and side to side

Test1;Test2;Test3;Test4 ............ ;Test468

how can I do this? thanks
0
Comment
Question by:TRocex
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
als315 earned 300 total points
ID: 39599892
You can use this function:
Public Function Concat(R As Range) As String
Dim c
Concat = ""
For Each c In R
        Concat = Concat & c.Value & ";"
Next
Concat = Left(Concat, Len(Concat) - 1)
End Function

Open in new window

Look at sample
Concat.xls
0
 

Author Comment

by:TRocex
ID: 39599998
thanks so how I should run your function or where should I write this function in excel?
0
 
LVL 39

Expert Comment

by:als315
ID: 39600102
Look at sample. There is function and example. You can press Alt+F11 and in Module1 you will see Function
0
 
LVL 31

Expert Comment

by:Paul Sauvé
ID: 39600544
Another approach is to copy the Excel column as a table to Word and use the Table to Text function with a semicolon as a delimiter!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question